Class Assignment
- java.lang.Object
-
- com.softlayer.api.Type
-
- com.softlayer.api.service.Entity
-
- com.softlayer.api.service.product.item.policy.Assignment
-
@ApiType("SoftLayer_Product_Item_Policy_Assignment") public class Assignment extends Entity
Represents the assignment of a policy to a product. The existence of a record means that the associated product is subject to the terms defined in the document content of the policy.- See Also:
- SoftLayer_Product_Item_Policy_Assignment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Assignment.Mask
static interface
Assignment.Service
Serves as a data source for additional information about the policy to product assignment.static interface
Assignment.ServiceAsync
-
Field Summary
Fields Modifier and Type Field Description protected Long
id
protected boolean
idSpecified
protected String
policyName
The name of the assigned policy.protected Item
product
The [[SoftLayer_Product_Item]] for this policy assignment.protected Long
productId
protected boolean
productIdSpecified
-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
Constructor Summary
Constructors Constructor Description Assignment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Assignment.Service
asService(ApiClient client)
Long
getId()
String
getPolicyName()
Item
getProduct()
Long
getProductId()
boolean
isIdSpecified()
boolean
isProductIdSpecified()
static Assignment.Service
service(ApiClient client)
static Assignment.Service
service(ApiClient client, Long id)
void
setId(Long id)
void
setPolicyName(String policyName)
void
setProduct(Item product)
void
setProductId(Long productId)
void
unsetId()
void
unsetProductId()
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
policyName
@ApiProperty protected String policyName
The name of the assigned policy.
-
product
@ApiProperty protected Item product
The [[SoftLayer_Product_Item]] for this policy assignment.
-
id
@ApiProperty(canBeNullOrNotSet=true) protected Long id
-
idSpecified
protected boolean idSpecified
-
productId
@ApiProperty(canBeNullOrNotSet=true) protected Long productId
-
productIdSpecified
protected boolean productIdSpecified
-
-
Method Detail
-
getPolicyName
public String getPolicyName()
-
setPolicyName
public void setPolicyName(String policyName)
-
getProduct
public Item getProduct()
-
setProduct
public void setProduct(Item product)
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
isIdSpecified
public boolean isIdSpecified()
-
unsetId
public void unsetId()
-
getProductId
public Long getProductId()
-
setProductId
public void setProductId(Long productId)
-
isProductIdSpecified
public boolean isProductIdSpecified()
-
unsetProductId
public void unsetProductId()
-
asService
public Assignment.Service asService(ApiClient client)
-
service
public static Assignment.Service service(ApiClient client)
-
service
public static Assignment.Service service(ApiClient client, Long id)
-
-