com.softlayer.api.service.product.item.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.product.item;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.product.Item;
import com.softlayer.api.service.product.item.attribute.Type;
/**
* The [[SoftLayer_Product_Item_Attribute]] data type allows us to describe a [[SoftLayer_Product_Item]] by attaching specific attributes, which may dictate how it interacts with other products and services. Most, if not all, of these attributes are geared towards internal usage, so customers should rarely be concerned with them.
*
* @see SoftLayer_Product_Item_Attribute
*/
@ApiType("SoftLayer_Product_Item_Attribute")
public class Attribute extends Entity {
/**
* This represents the attribute type of this product attribute.
*/
@ApiProperty
protected Type attributeType;
public Type getAttributeType() {
return attributeType;
}
public void setAttributeType(Type attributeType) {
this.attributeType = attributeType;
}
/**
* This represents the attribute type's key name of this product attribute.
*/
@ApiProperty
protected String attributeTypeKeyName;
public String getAttributeTypeKeyName() {
return attributeTypeKeyName;
}
public void setAttributeTypeKeyName(String attributeTypeKeyName) {
this.attributeTypeKeyName = attributeTypeKeyName;
}
/**
* This represents the product that an attribute is tied to.
*/
@ApiProperty
protected Item item;
public Item getItem() {
return item;
}
public void setItem(Item item) {
this.item = item;
}
/**
* This is the primary key value for the product attribute.
*/
@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;
}
/**
* This is a foreign key value for the [[SoftLayer_Product_Item_Attribute_Type]].
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long itemAttributeTypeId;
public Long getItemAttributeTypeId() {
return itemAttributeTypeId;
}
public void setItemAttributeTypeId(Long itemAttributeTypeId) {
itemAttributeTypeIdSpecified = true;
this.itemAttributeTypeId = itemAttributeTypeId;
}
protected boolean itemAttributeTypeIdSpecified;
public boolean isItemAttributeTypeIdSpecified() {
return itemAttributeTypeIdSpecified;
}
public void unsetItemAttributeTypeId() {
itemAttributeTypeId = null;
itemAttributeTypeIdSpecified = false;
}
/**
* This is a foreign key value for the [[SoftLayer_Product_Item]].
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long itemId;
public Long getItemId() {
return itemId;
}
public void setItemId(Long itemId) {
itemIdSpecified = true;
this.itemId = itemId;
}
protected boolean itemIdSpecified;
public boolean isItemIdSpecified() {
return itemIdSpecified;
}
public void unsetItemId() {
itemId = null;
itemIdSpecified = false;
}
/**
* This is the value for the attribute.
*/
@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.product.item.attribute.Type.Mask attributeType() {
return withSubMask("attributeType", com.softlayer.api.service.product.item.attribute.Type.Mask.class);
}
public Mask attributeTypeKeyName() {
withLocalProperty("attributeTypeKeyName");
return this;
}
public com.softlayer.api.service.product.Item.Mask item() {
return withSubMask("item", com.softlayer.api.service.product.Item.Mask.class);
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask itemAttributeTypeId() {
withLocalProperty("itemAttributeTypeId");
return this;
}
public Mask itemId() {
withLocalProperty("itemId");
return this;
}
public Mask value() {
withLocalProperty("value");
return this;
}
}
}