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
-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
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()
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
scalePolicy
@ApiProperty protected Policy scalePolicy
The policy this action is on.
-
type
@ApiProperty protected Type type
The type of action.
-
createDate
@ApiProperty(canBeNullOrNotSet=true) protected GregorianCalendar createDate
When this action was created.
-
createDateSpecified
protected boolean createDateSpecified
-
deleteFlag
@ApiProperty(canBeNullOrNotSet=true) 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.
-
deleteFlagSpecified
protected boolean deleteFlagSpecified
-
id
@ApiProperty(canBeNullOrNotSet=true) protected Long id
An action's internal identifier.
-
idSpecified
protected boolean idSpecified
-
modifyDate
@ApiProperty(canBeNullOrNotSet=true) protected GregorianCalendar modifyDate
Then this action was last modified.
-
modifyDateSpecified
protected boolean modifyDateSpecified
-
scalePolicyId
@ApiProperty(canBeNullOrNotSet=true) protected Long scalePolicyId
The policy this action is on.
-
scalePolicyIdSpecified
protected boolean scalePolicyIdSpecified
-
typeId
@ApiProperty(canBeNullOrNotSet=true) protected Long typeId
The identifier of this action's type.
-
typeIdSpecified
protected boolean typeIdSpecified
-
-
Method Detail
-
getScalePolicy
public Policy getScalePolicy()
-
setScalePolicy
public void setScalePolicy(Policy scalePolicy)
-
getType
public Type getType()
-
setType
public void setType(Type type)
-
getCreateDate
public GregorianCalendar getCreateDate()
-
setCreateDate
public void setCreateDate(GregorianCalendar createDate)
-
isCreateDateSpecified
public boolean isCreateDateSpecified()
-
unsetCreateDate
public void unsetCreateDate()
-
getDeleteFlag
public Boolean getDeleteFlag()
-
setDeleteFlag
public void setDeleteFlag(Boolean deleteFlag)
-
isDeleteFlagSpecified
public boolean isDeleteFlagSpecified()
-
unsetDeleteFlag
public void unsetDeleteFlag()
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
isIdSpecified
public boolean isIdSpecified()
-
unsetId
public void unsetId()
-
getModifyDate
public GregorianCalendar getModifyDate()
-
setModifyDate
public void setModifyDate(GregorianCalendar modifyDate)
-
isModifyDateSpecified
public boolean isModifyDateSpecified()
-
unsetModifyDate
public void unsetModifyDate()
-
getScalePolicyId
public Long getScalePolicyId()
-
setScalePolicyId
public void setScalePolicyId(Long scalePolicyId)
-
isScalePolicyIdSpecified
public boolean isScalePolicyIdSpecified()
-
unsetScalePolicyId
public void unsetScalePolicyId()
-
getTypeId
public Long getTypeId()
-
setTypeId
public void setTypeId(Long typeId)
-
isTypeIdSpecified
public boolean isTypeIdSpecified()
-
unsetTypeId
public void unsetTypeId()
-
asService
public Action.Service asService(ApiClient client)
-
service
public static Action.Service service(ApiClient client)
-
service
public static Action.Service service(ApiClient client, Long id)
-
-