com.softlayer.api.service.account.partner.Business 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.partner;
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 java.util.concurrent.Future;
/**
* The SoftLayer_Account_Partner_Business data type contains specific information concerning an Account's relationship with Business Partner Data, in the form of the Account's Country Experience Identifier (CEID), Channel ID, and Segment ID.
*
* @see SoftLayer_Account_Partner_Business
*/
@ApiType("SoftLayer_Account_Partner_Business")
public class Business extends Entity {
/**
* The SoftLayer customer account associated with this business partner data.
*/
@ApiProperty
protected Account account;
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
/**
* The Channel ID associated with the Account.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long channelId;
public Long getChannelId() {
return channelId;
}
public void setChannelId(Long channelId) {
channelIdSpecified = true;
this.channelId = channelId;
}
protected boolean channelIdSpecified;
public boolean isChannelIdSpecified() {
return channelIdSpecified;
}
public void unsetChannelId() {
channelId = null;
channelIdSpecified = false;
}
/**
* The Country Enterprise Code associated with the Account.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String countryEnterpriseCode;
public String getCountryEnterpriseCode() {
return countryEnterpriseCode;
}
public void setCountryEnterpriseCode(String countryEnterpriseCode) {
countryEnterpriseCodeSpecified = true;
this.countryEnterpriseCode = countryEnterpriseCode;
}
protected boolean countryEnterpriseCodeSpecified;
public boolean isCountryEnterpriseCodeSpecified() {
return countryEnterpriseCodeSpecified;
}
public void unsetCountryEnterpriseCode() {
countryEnterpriseCode = null;
countryEnterpriseCodeSpecified = false;
}
/**
* The Segment ID associated with the Account.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long segmentId;
public Long getSegmentId() {
return segmentId;
}
public void setSegmentId(Long segmentId) {
segmentIdSpecified = true;
this.segmentId = segmentId;
}
protected boolean segmentIdSpecified;
public boolean isSegmentIdSpecified() {
return segmentIdSpecified;
}
public void unsetSegmentId() {
segmentId = null;
segmentIdSpecified = false;
}
public static Service service(ApiClient client) {
return client.createService(Service.class, null);
}
/**
* @see SoftLayer_Account_Partner_Business
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Account_Partner_Business")
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_Partner_Business::getObject
*/
@ApiMethod(instanceRequired = true)
public Business getObject();
/**
* The SoftLayer customer account associated with this business partner data.
*
* @see SoftLayer_Account_Partner_Business::getAccount
*/
@ApiMethod(instanceRequired = true)
public Account getAccount();
}
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);
/**
* Async version of {@link Service#getAccount}
*/
public Future getAccount();
/**
* Async callback version of {@link Service#getAccount}
*/
public Future> getAccount(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 Mask channelId() {
withLocalProperty("channelId");
return this;
}
public Mask countryEnterpriseCode() {
withLocalProperty("countryEnterpriseCode");
return this;
}
public Mask segmentId() {
withLocalProperty("segmentId");
return this;
}
}
}