com.softlayer.api.service.account.Attribute 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.account;
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.attribute.Type;
/**
* Many SoftLayer customer accounts have individual attributes assigned to them that describe features or special features for that account, such as special pricing, account statuses, and ordering instructions. The SoftLayer_Account_Attribute data type contains information relating to a single SoftLayer_Account attribute.
*
* @see SoftLayer_Account_Attribute
*/
@ApiType("SoftLayer_Account_Attribute")
public class Attribute extends Entity {
/**
* The SoftLayer customer account that has an attribute.
*/
@ApiProperty
protected Account account;
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
/**
* The type of attribute assigned to a SoftLayer customer account.
*/
@ApiProperty
protected Type accountAttributeType;
public Type getAccountAttributeType() {
return accountAttributeType;
}
public void setAccountAttributeType(Type accountAttributeType) {
this.accountAttributeType = accountAttributeType;
}
/**
* The internal identifier of the type of attribute that a SoftLayer customer account attribute belongs to.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long accountAttributeTypeId;
public Long getAccountAttributeTypeId() {
return accountAttributeTypeId;
}
public void setAccountAttributeTypeId(Long accountAttributeTypeId) {
accountAttributeTypeIdSpecified = true;
this.accountAttributeTypeId = accountAttributeTypeId;
}
protected boolean accountAttributeTypeIdSpecified;
public boolean isAccountAttributeTypeIdSpecified() {
return accountAttributeTypeIdSpecified;
}
public void unsetAccountAttributeTypeId() {
accountAttributeTypeId = null;
accountAttributeTypeIdSpecified = false;
}
/**
* The internal identifier of the SoftLayer customer account that is assigned an account attribute.
*/
@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;
}
/**
* A SoftLayer customer account attribute's internal identifier.
*/
@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 SoftLayer account attribute's value.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String value;
public String getValue() {
return value;
}
public void setValue(String value) {
valueSpecified = true;
this.value = value;
}
protected boolean valueSpecified;
public boolean isValueSpecified() {
return valueSpecified;
}
public void unsetValue() {
value = null;
valueSpecified = false;
}
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.account.attribute.Type.Mask accountAttributeType() {
return withSubMask("accountAttributeType", com.softlayer.api.service.account.attribute.Type.Mask.class);
}
public Mask accountAttributeTypeId() {
withLocalProperty("accountAttributeTypeId");
return this;
}
public Mask accountId() {
withLocalProperty("accountId");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask value() {
withLocalProperty("value");
return this;
}
}
}