Class Rule
java.lang.Object
com.softlayer.api.Type
com.softlayer.api.service.Entity
com.softlayer.api.service.product.item.Rule
@ApiType("SoftLayer_Product_Item_Rule") public class Rule extends Entity
The item rule data type represents a rule that must be followed when the item assigned to the rule is ordered. The type and operation applied to the resources of the rule will affect how the rule is checked during ordering.
- See Also:
- SoftLayer_Product_Item_Rule
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Rule.Mask
-
Field Summary
Fields Modifier and Type Field Description protected Item
item
The product item that a rule applies to.protected Long
itemCategoryResourceCount
A count ofprotected List<Category>
itemCategoryResources
protected Long
itemId
The unique identifier of the item that the rule applies to.protected boolean
itemIdSpecified
protected Long
itemResourceCount
A count ofprotected List<Item>
itemResources
protected Long
locationResourceCount
A count ofprotected List<Location>
locationResources
protected String
message
An optional message shown for when the rule is found to be invalid when ordering.protected boolean
messageSpecified
protected String
operation
protected boolean
operationSpecified
protected Long
packageId
The unique identifier of the service offering that is associated with the rule.protected boolean
packageIdSpecified
protected Long
permissionResourceCount
A count ofprotected List<Permission>
permissionResources
protected Long
resourceCount
A count of resources for this rule that are validated when ordering.protected List<Resource>
resources
Resources for this rule that are validated when ordering.protected Package
rulePackage
The package that a rule is applicable to when ordering.protected Type
type
The type a rule is.protected Long
typeId
The unique identifier of the type of resource rule.protected boolean
typeIdSpecified
-
Constructor Summary
Constructors Constructor Description Rule()
-
Method Summary
-
Field Details
-
item
The product item that a rule applies to. -
itemCategoryResources
-
itemResources
-
locationResources
-
rulePackage
The package that a rule is applicable to when ordering. If no package exists, the rule applies to any package. -
permissionResources
-
resources
Resources for this rule that are validated when ordering. -
type
The type a rule is. The type affects how the rule is validated when ordering. -
itemId
The unique identifier of the item that the rule applies to. -
itemIdSpecified
protected boolean itemIdSpecified -
message
An optional message shown for when the rule is found to be invalid when ordering. -
messageSpecified
protected boolean messageSpecified -
operation
-
operationSpecified
protected boolean operationSpecified -
packageId
The unique identifier of the service offering that is associated with the rule. -
packageIdSpecified
protected boolean packageIdSpecified -
typeId
The unique identifier of the type of resource rule. -
typeIdSpecified
protected boolean typeIdSpecified -
itemCategoryResourceCount
A count of -
itemResourceCount
A count of -
locationResourceCount
A count of -
permissionResourceCount
A count of -
resourceCount
A count of resources for this rule that are validated when ordering.
-
-
Constructor Details
-
Rule
public Rule()
-
-
Method Details
-
getItem
-
setItem
-
getItemCategoryResources
-
getItemResources
-
getLocationResources
-
getRulePackage
-
setRulePackage
-
getPermissionResources
-
getResources
-
getType
-
setType
-
getItemId
-
setItemId
-
isItemIdSpecified
public boolean isItemIdSpecified() -
unsetItemId
public void unsetItemId() -
getMessage
-
setMessage
-
isMessageSpecified
public boolean isMessageSpecified() -
unsetMessage
public void unsetMessage() -
getOperation
-
setOperation
-
isOperationSpecified
public boolean isOperationSpecified() -
unsetOperation
public void unsetOperation() -
getPackageId
-
setPackageId
-
isPackageIdSpecified
public boolean isPackageIdSpecified() -
unsetPackageId
public void unsetPackageId() -
getTypeId
-
setTypeId
-
isTypeIdSpecified
public boolean isTypeIdSpecified() -
unsetTypeId
public void unsetTypeId() -
getItemCategoryResourceCount
-
setItemCategoryResourceCount
-
getItemResourceCount
-
setItemResourceCount
-
getLocationResourceCount
-
setLocationResourceCount
-
getPermissionResourceCount
-
setPermissionResourceCount
-
getResourceCount
-
setResourceCount
-