com.softlayer.api.service.auxiliary.press.release.About 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.auxiliary.press.release;
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.Entity;
import java.util.concurrent.Future;
/**
* The SoftLayer_Auxiliary_Press_Release_About service provides all the about paragraphs associated to a press release.
*
* @see SoftLayer_Auxiliary_Press_Release_About
*/
@ApiType("SoftLayer_Auxiliary_Press_Release_About")
public class About extends Entity {
/**
* A press release about's content.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String content;
public String getContent() {
return content;
}
public void setContent(String content) {
contentSpecified = true;
this.content = content;
}
protected boolean contentSpecified;
public boolean isContentSpecified() {
return contentSpecified;
}
public void unsetContent() {
content = null;
contentSpecified = false;
}
/**
* A press release about's internal
*/
@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;
}
/**
* A press release about's title.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String title;
public String getTitle() {
return title;
}
public void setTitle(String title) {
titleSpecified = true;
this.title = title;
}
protected boolean titleSpecified;
public boolean isTitleSpecified() {
return titleSpecified;
}
public void unsetTitle() {
title = null;
titleSpecified = false;
}
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());
}
/**
* The SoftLayer_Auxiliary_Press_Release_About service provides all the about paragraphs associated to a press release.
*
* @see SoftLayer_Auxiliary_Press_Release_About
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Auxiliary_Press_Release_About")
public static interface Service extends com.softlayer.api.Service {
public ServiceAsync asAsync();
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* getObject retrieves the SoftLayer_Auxiliary_Press_Release_About object whose about id number corresponds to the ID number of the init parameter passed to the SoftLayer_Auxiliary_Press_Release service.
*
* @see SoftLayer_Auxiliary_Press_Release_About::getObject
*/
@ApiMethod(instanceRequired = true)
public About getObject();
}
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#getObject}
*/
public Future getObject();
public Future> getObject(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Mask content() {
withLocalProperty("content");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask title() {
withLocalProperty("title");
return this;
}
}
}