com.softlayer.api.service.account.Note 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
package com.softlayer.api.service.account;
import com.softlayer.api.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Account;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.account.note.History;
import com.softlayer.api.service.user.Customer;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.concurrent.Future;
/**
* @see SoftLayer_Account_Note
*/
@ApiType("SoftLayer_Account_Note")
public class Note extends Entity {
@ApiProperty
protected Account account;
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
@ApiProperty
protected Customer customer;
public Customer getCustomer() {
return customer;
}
public void setCustomer(Customer customer) {
this.customer = customer;
}
@ApiProperty
protected List noteHistory;
public List getNoteHistory() {
if (noteHistory == null) {
noteHistory = new ArrayList();
}
return noteHistory;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long accountId;
public Long getAccountId() {
return accountId;
}
public void setAccountId(Long accountId) {
accountIdSpecified = true;
this.accountId = accountId;
}
protected boolean accountIdSpecified;
public boolean isAccountIdSpecified() {
return accountIdSpecified;
}
public void unsetAccountId() {
accountId = null;
accountIdSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected GregorianCalendar createDate;
public GregorianCalendar getCreateDate() {
return createDate;
}
public void setCreateDate(GregorianCalendar createDate) {
createDateSpecified = true;
this.createDate = createDate;
}
protected boolean createDateSpecified;
public boolean isCreateDateSpecified() {
return createDateSpecified;
}
public void unsetCreateDate() {
createDate = null;
createDateSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
idSpecified = true;
this.id = id;
}
protected boolean idSpecified;
public boolean isIdSpecified() {
return idSpecified;
}
public void unsetId() {
id = null;
idSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected GregorianCalendar modifyDate;
public GregorianCalendar getModifyDate() {
return modifyDate;
}
public void setModifyDate(GregorianCalendar modifyDate) {
modifyDateSpecified = true;
this.modifyDate = modifyDate;
}
protected boolean modifyDateSpecified;
public boolean isModifyDateSpecified() {
return modifyDateSpecified;
}
public void unsetModifyDate() {
modifyDate = null;
modifyDateSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String note;
public String getNote() {
return note;
}
public void setNote(String note) {
noteSpecified = true;
this.note = note;
}
protected boolean noteSpecified;
public boolean isNoteSpecified() {
return noteSpecified;
}
public void unsetNote() {
note = null;
noteSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long noteTypeId;
public Long getNoteTypeId() {
return noteTypeId;
}
public void setNoteTypeId(Long noteTypeId) {
noteTypeIdSpecified = true;
this.noteTypeId = noteTypeId;
}
protected boolean noteTypeIdSpecified;
public boolean isNoteTypeIdSpecified() {
return noteTypeIdSpecified;
}
public void unsetNoteTypeId() {
noteTypeId = null;
noteTypeIdSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long userId;
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
userIdSpecified = true;
this.userId = userId;
}
protected boolean userIdSpecified;
public boolean isUserIdSpecified() {
return userIdSpecified;
}
public void unsetUserId() {
userId = null;
userIdSpecified = false;
}
/**
* A count of
*/
@ApiProperty
protected Long noteHistoryCount;
public Long getNoteHistoryCount() {
return noteHistoryCount;
}
public void setNoteHistoryCount(Long noteHistoryCount) {
this.noteHistoryCount = noteHistoryCount;
}
public Service asService(ApiClient client) {
return service(client, id);
}
public static Service service(ApiClient client) {
return client.createService(Service.class, null);
}
public static Service service(ApiClient client, Long id) {
return client.createService(Service.class, id == null ? null : id.toString());
}
/**
* @see SoftLayer_Account_Note
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Account_Note")
public static interface Service extends com.softlayer.api.Service {
public ServiceAsync asAsync();
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* @see SoftLayer_Account_Note::createObject
*/
@ApiMethod
public Note createObject(Note templateObject);
/**
* @see SoftLayer_Account_Note::deleteObject
*/
@ApiMethod(instanceRequired = true)
public Boolean deleteObject();
/**
* @see SoftLayer_Account_Note::editObject
*/
@ApiMethod(instanceRequired = true)
public Boolean editObject(Note templateObject);
/**
* @see SoftLayer_Account_Note::getObject
*/
@ApiMethod(instanceRequired = true)
public Note getObject();
/**
* @see SoftLayer_Account_Note::getAccount
*/
@ApiMethod(instanceRequired = true)
public Account getAccount();
/**
* @see SoftLayer_Account_Note::getCustomer
*/
@ApiMethod(instanceRequired = true)
public Customer getCustomer();
/**
* @see SoftLayer_Account_Note::getNoteHistory
*/
@ApiMethod(instanceRequired = true)
public List getNoteHistory();
}
public static interface ServiceAsync extends com.softlayer.api.ServiceAsync {
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* Async version of {@link Service#createObject}
*/
public Future createObject(Note templateObject);
public Future> createObject(Note templateObject, ResponseHandler callback);
/**
* Async version of {@link Service#deleteObject}
*/
public Future deleteObject();
public Future> deleteObject(ResponseHandler callback);
/**
* Async version of {@link Service#editObject}
*/
public Future editObject(Note templateObject);
public Future> editObject(Note templateObject, ResponseHandler callback);
/**
* Async version of {@link Service#getObject}
*/
public Future getObject();
public Future> getObject(ResponseHandler callback);
/**
* Async version of {@link Service#getAccount}
*/
public Future getAccount();
/**
* Async callback version of {@link Service#getAccount}
*/
public Future> getAccount(ResponseHandler callback);
/**
* Async version of {@link Service#getCustomer}
*/
public Future getCustomer();
/**
* Async callback version of {@link Service#getCustomer}
*/
public Future> getCustomer(ResponseHandler callback);
/**
* Async version of {@link Service#getNoteHistory}
*/
public Future> getNoteHistory();
/**
* Async callback version of {@link Service#getNoteHistory}
*/
public Future> getNoteHistory(ResponseHandler> callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.Account.Mask account() {
return withSubMask("account", com.softlayer.api.service.Account.Mask.class);
}
public com.softlayer.api.service.user.Customer.Mask customer() {
return withSubMask("customer", com.softlayer.api.service.user.Customer.Mask.class);
}
public com.softlayer.api.service.account.note.History.Mask noteHistory() {
return withSubMask("noteHistory", com.softlayer.api.service.account.note.History.Mask.class);
}
public Mask accountId() {
withLocalProperty("accountId");
return this;
}
public Mask createDate() {
withLocalProperty("createDate");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask modifyDate() {
withLocalProperty("modifyDate");
return this;
}
public Mask note() {
withLocalProperty("note");
return this;
}
public Mask noteTypeId() {
withLocalProperty("noteTypeId");
return this;
}
public Mask userId() {
withLocalProperty("userId");
return this;
}
public Mask noteHistoryCount() {
withLocalProperty("noteHistoryCount");
return this;
}
}
}