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
-
Constructor Summary
Constructors Constructor Description Assignment()
-
Method Summary
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()
-
Field Details
-
policyName
The name of the assigned policy. -
product
The [[SoftLayer_Product_Item]] for this policy assignment. -
id
-
idSpecified
protected boolean idSpecified -
productId
-
productIdSpecified
protected boolean productIdSpecified
-
-
Constructor Details
-
Assignment
public Assignment()
-
-
Method Details
-
getPolicyName
-
setPolicyName
-
getProduct
-
setProduct
-
getId
-
setId
-
isIdSpecified
public boolean isIdSpecified() -
unsetId
public void unsetId() -
getProductId
-
setProductId
-
isProductIdSpecified
public boolean isProductIdSpecified() -
unsetProductId
public void unsetProductId() -
asService
-
service
-
service
-