java.lang.Object
com.softlayer.api.Type
com.softlayer.api.service.Entity
com.softlayer.api.service.container.utility.file.Attachment

@ApiType("SoftLayer_Container_Utility_File_Attachment")
public class Attachment
extends Entity
At times,such as when attaching files to tickets, it is necessary to send files to SoftLayer API methods. The SoftLayer_Container_Utility_File_Attachment data type models a single file to upload to the API.
See Also:
SoftLayer_Container_Utility_File_Attachment
  • Field Details

    • data

      @ApiProperty(canBeNullOrNotSet=true) protected byte[] data
      The contents of a file that is uploaded to the SoftLayer API.
    • dataSpecified

      protected boolean dataSpecified
    • filename

      @ApiProperty(canBeNullOrNotSet=true) protected String filename
      The name of a file that is uploaded to the SoftLayer API.
    • filenameSpecified

      protected boolean filenameSpecified
  • Constructor Details

    • Attachment

      public Attachment()
  • Method Details

    • getData

      public byte[] getData()
    • setData

      public void setData​(byte[] data)
    • isDataSpecified

      public boolean isDataSpecified()
    • unsetData

      public void unsetData()
    • getFilename

      public String getFilename()
    • setFilename

      public void setFilename​(String filename)
    • isFilenameSpecified

      public boolean isFilenameSpecified()
    • unsetFilename

      public void unsetFilename()