Class Action
java.lang.Object
com.softlayer.api.Type
com.softlayer.api.service.Entity
com.softlayer.api.service.scale.policy.Action
- Direct Known Subclasses:
Scale
@ApiType("SoftLayer_Scale_Policy_Action") public class Action extends Entity
An action to execute when a policy is triggered. Currently only one action can be associated with a policy and it must be created with the policy.
- See Also:
- SoftLayer_Scale_Policy_Action
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Action.Mask
static interface
Action.Service
An action to execute when a policy is triggered.static interface
Action.ServiceAsync
-
Field Summary
Fields Modifier and Type Field Description protected GregorianCalendar
createDate
When this action was created.protected boolean
createDateSpecified
protected Boolean
deleteFlag
When set and true any edit that happens on this object, be it calling edit on this directly or setting as a child while editing a parent object, will end up being a deletion.protected boolean
deleteFlagSpecified
protected Long
id
An action's internal identifier.protected boolean
idSpecified
protected GregorianCalendar
modifyDate
Then this action was last modified.protected boolean
modifyDateSpecified
protected Policy
scalePolicy
The policy this action is on.protected Long
scalePolicyId
The policy this action is on.protected boolean
scalePolicyIdSpecified
protected Type
type
The type of action.protected Long
typeId
The identifier of this action's type.protected boolean
typeIdSpecified
-
Constructor Summary
Constructors Constructor Description Action()
-
Method Summary
Modifier and Type Method Description Action.Service
asService(ApiClient client)
GregorianCalendar
getCreateDate()
Boolean
getDeleteFlag()
Long
getId()
GregorianCalendar
getModifyDate()
Policy
getScalePolicy()
Long
getScalePolicyId()
Type
getType()
Long
getTypeId()
boolean
isCreateDateSpecified()
boolean
isDeleteFlagSpecified()
boolean
isIdSpecified()
boolean
isModifyDateSpecified()
boolean
isScalePolicyIdSpecified()
boolean
isTypeIdSpecified()
static Action.Service
service(ApiClient client)
static Action.Service
service(ApiClient client, Long id)
void
setCreateDate(GregorianCalendar createDate)
void
setDeleteFlag(Boolean deleteFlag)
void
setId(Long id)
void
setModifyDate(GregorianCalendar modifyDate)
void
setScalePolicy(Policy scalePolicy)
void
setScalePolicyId(Long scalePolicyId)
void
setType(Type type)
void
setTypeId(Long typeId)
void
unsetCreateDate()
void
unsetDeleteFlag()
void
unsetId()
void
unsetModifyDate()
void
unsetScalePolicyId()
void
unsetTypeId()
-
Field Details
-
scalePolicy
The policy this action is on. -
type
The type of action. -
createDate
When this action was created. -
createDateSpecified
protected boolean createDateSpecified -
deleteFlag
When set and true any edit that happens on this object, be it calling edit on this directly or setting as a child while editing a parent object, will end up being a deletion. -
deleteFlagSpecified
protected boolean deleteFlagSpecified -
id
An action's internal identifier. -
idSpecified
protected boolean idSpecified -
modifyDate
Then this action was last modified. -
modifyDateSpecified
protected boolean modifyDateSpecified -
scalePolicyId
The policy this action is on. -
scalePolicyIdSpecified
protected boolean scalePolicyIdSpecified -
typeId
The identifier of this action's type. -
typeIdSpecified
protected boolean typeIdSpecified
-
-
Constructor Details
-
Action
public Action()
-
-
Method Details
-
getScalePolicy
-
setScalePolicy
-
getType
-
setType
-
getCreateDate
-
setCreateDate
-
isCreateDateSpecified
public boolean isCreateDateSpecified() -
unsetCreateDate
public void unsetCreateDate() -
getDeleteFlag
-
setDeleteFlag
-
isDeleteFlagSpecified
public boolean isDeleteFlagSpecified() -
unsetDeleteFlag
public void unsetDeleteFlag() -
getId
-
setId
-
isIdSpecified
public boolean isIdSpecified() -
unsetId
public void unsetId() -
getModifyDate
-
setModifyDate
-
isModifyDateSpecified
public boolean isModifyDateSpecified() -
unsetModifyDate
public void unsetModifyDate() -
getScalePolicyId
-
setScalePolicyId
-
isScalePolicyIdSpecified
public boolean isScalePolicyIdSpecified() -
unsetScalePolicyId
public void unsetScalePolicyId() -
getTypeId
-
setTypeId
-
isTypeIdSpecified
public boolean isTypeIdSpecified() -
unsetTypeId
public void unsetTypeId() -
asService
-
service
-
service
-