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
  • Field Details

    • item

      @ApiProperty protected Item item
      The product item that a rule applies to.
    • itemCategoryResources

      @ApiProperty protected List<Category> itemCategoryResources
    • itemResources

      @ApiProperty protected List<Item> itemResources
    • locationResources

      @ApiProperty protected List<Location> locationResources
    • rulePackage

      @ApiProperty("package") protected Package rulePackage
      The package that a rule is applicable to when ordering. If no package exists, the rule applies to any package.
    • permissionResources

      @ApiProperty protected List<Permission> permissionResources
    • resources

      @ApiProperty protected List<Resource> resources
      Resources for this rule that are validated when ordering.
    • type

      @ApiProperty protected Type type
      The type a rule is. The type affects how the rule is validated when ordering.
    • itemId

      @ApiProperty(canBeNullOrNotSet=true) protected Long itemId
      The unique identifier of the item that the rule applies to.
    • itemIdSpecified

      protected boolean itemIdSpecified
    • message

      @ApiProperty(canBeNullOrNotSet=true) protected String message
      An optional message shown for when the rule is found to be invalid when ordering.
    • messageSpecified

      protected boolean messageSpecified
    • operation

      @ApiProperty(canBeNullOrNotSet=true) protected String operation
    • operationSpecified

      protected boolean operationSpecified
    • packageId

      @ApiProperty(canBeNullOrNotSet=true) protected Long packageId
      The unique identifier of the service offering that is associated with the rule.
    • packageIdSpecified

      protected boolean packageIdSpecified
    • typeId

      @ApiProperty(canBeNullOrNotSet=true) protected Long typeId
      The unique identifier of the type of resource rule.
    • typeIdSpecified

      protected boolean typeIdSpecified
    • itemCategoryResourceCount

      @ApiProperty protected Long itemCategoryResourceCount
      A count of
    • itemResourceCount

      @ApiProperty protected Long itemResourceCount
      A count of
    • locationResourceCount

      @ApiProperty protected Long locationResourceCount
      A count of
    • permissionResourceCount

      @ApiProperty protected Long permissionResourceCount
      A count of
    • resourceCount

      @ApiProperty protected Long resourceCount
      A count of resources for this rule that are validated when ordering.
  • Constructor Details

    • Rule

      public Rule()
  • Method Details

    • getItem

      public Item getItem()
    • setItem

      public void setItem​(Item item)
    • getItemCategoryResources

      public List<Category> getItemCategoryResources()
    • getItemResources

      public List<Item> getItemResources()
    • getLocationResources

      public List<Location> getLocationResources()
    • getRulePackage

      public Package getRulePackage()
    • setRulePackage

      public void setRulePackage​(Package rulePackage)
    • getPermissionResources

      public List<Permission> getPermissionResources()
    • getResources

      public List<Resource> getResources()
    • getType

      public Type getType()
    • setType

      public void setType​(Type type)
    • getItemId

      public Long getItemId()
    • setItemId

      public void setItemId​(Long itemId)
    • isItemIdSpecified

      public boolean isItemIdSpecified()
    • unsetItemId

      public void unsetItemId()
    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage​(String message)
    • isMessageSpecified

      public boolean isMessageSpecified()
    • unsetMessage

      public void unsetMessage()
    • getOperation

      public String getOperation()
    • setOperation

      public void setOperation​(String operation)
    • isOperationSpecified

      public boolean isOperationSpecified()
    • unsetOperation

      public void unsetOperation()
    • getPackageId

      public Long getPackageId()
    • setPackageId

      public void setPackageId​(Long packageId)
    • isPackageIdSpecified

      public boolean isPackageIdSpecified()
    • unsetPackageId

      public void unsetPackageId()
    • getTypeId

      public Long getTypeId()
    • setTypeId

      public void setTypeId​(Long typeId)
    • isTypeIdSpecified

      public boolean isTypeIdSpecified()
    • unsetTypeId

      public void unsetTypeId()
    • getItemCategoryResourceCount

      public Long getItemCategoryResourceCount()
    • setItemCategoryResourceCount

      public void setItemCategoryResourceCount​(Long itemCategoryResourceCount)
    • getItemResourceCount

      public Long getItemResourceCount()
    • setItemResourceCount

      public void setItemResourceCount​(Long itemResourceCount)
    • getLocationResourceCount

      public Long getLocationResourceCount()
    • setLocationResourceCount

      public void setLocationResourceCount​(Long locationResourceCount)
    • getPermissionResourceCount

      public Long getPermissionResourceCount()
    • setPermissionResourceCount

      public void setPermissionResourceCount​(Long permissionResourceCount)
    • getResourceCount

      public Long getResourceCount()
    • setResourceCount

      public void setResourceCount​(Long resourceCount)