Class Attachment
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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttachment.Mask -
Field Summary
Fields Modifier and Type Field Description protected byte[]dataThe contents of a file that is uploaded to the SoftLayer API.protected booleandataSpecifiedprotected StringfilenameThe name of a file that is uploaded to the SoftLayer API.protected booleanfilenameSpecified -
Constructor Summary
Constructors Constructor Description Attachment() -
Method Summary
Modifier and Type Method Description byte[]getData()StringgetFilename()booleanisDataSpecified()booleanisFilenameSpecified()voidsetData(byte[] data)voidsetFilename(String filename)voidunsetData()voidunsetFilename()
-
Field Details
-
data
The contents of a file that is uploaded to the SoftLayer API. -
dataSpecified
protected boolean dataSpecified -
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
-
setFilename
-
isFilenameSpecified
public boolean isFilenameSpecified() -
unsetFilename
public void unsetFilename()
-