com.softlayer.api.service.container.utility.file.Attachment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of softlayer-api-client Show documentation
Show all versions of softlayer-api-client Show documentation
API client for accessing the SoftLayer API
The newest version!
package com.softlayer.api.service.container.utility.file;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.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 SoftLayer_Container_Utility_File_Attachment
*/
@ApiType("SoftLayer_Container_Utility_File_Attachment")
public class Attachment extends Entity {
/**
* The contents of a file that is uploaded to the SoftLayer API.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected byte[] data;
public byte[] getData() {
return data;
}
public void setData(byte[] data) {
dataSpecified = true;
this.data = data;
}
protected boolean dataSpecified;
public boolean isDataSpecified() {
return dataSpecified;
}
public void unsetData() {
data = null;
dataSpecified = false;
}
/**
* The name of a file that is uploaded to the SoftLayer API.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String filename;
public String getFilename() {
return filename;
}
public void setFilename(String filename) {
filenameSpecified = true;
this.filename = filename;
}
protected boolean filenameSpecified;
public boolean isFilenameSpecified() {
return filenameSpecified;
}
public void unsetFilename() {
filename = null;
filenameSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Mask data() {
withLocalProperty("data");
return this;
}
public Mask filename() {
withLocalProperty("filename");
return this;
}
}
}