Package com.ibm.cloud.is.vpc.v1.model
Class InstanceGroupManagerAction
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.InstanceGroupManagerAction
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
- Direct Known Subclasses:
InstanceGroupManagerActionScheduledAction
public class InstanceGroupManagerAction extends com.ibm.cloud.sdk.core.service.model.GenericModelInstanceGroupManagerAction. Classes which extend this class: - InstanceGroupManagerActionScheduledAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInstanceGroupManagerAction.ActionTypeThe type of action for the instance group.static interfaceInstanceGroupManagerAction.ResourceTypeThe resource type.static interfaceInstanceGroupManagerAction.StatusThe status of the instance group action - `active`: Action is ready to be run - `completed`: Action was completed successfully - `failed`: Action could not be completed successfully - `incompatible`: Action parameters are not compatible with the group or manager - `omitted`: Action was not applied because this action's manager was disabled.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActionType()Gets the actionType.LonggetAutoDeleteTimeout()Gets the autoDeleteTimeout.DategetCreatedAt()Gets the createdAt.StringgetCronSpec()Gets the cronSpec.InstanceGroupManagerScheduledActionGroupgetGroup()Gets the group.StringgetHref()Gets the href.StringgetId()Gets the id.DategetLastAppliedAt()Gets the lastAppliedAt.InstanceGroupManagerScheduledActionManagergetManager()Gets the manager.StringgetName()Gets the name.DategetNextRunAt()Gets the nextRunAt.StringgetResourceType()Gets the resourceType.StringgetStatus()Gets the status.DategetUpdatedAt()Gets the updatedAt.BooleanisAutoDelete()Gets the autoDelete.
-
-
-
Method Detail
-
isAutoDelete
public Boolean isAutoDelete()
Gets the autoDelete. Indicates whether this scheduled action will be automatically deleted after it has completed and `auto_delete_timeout` hours have passed. At present, this is always `true`, but may be modifiable in the future.- Returns:
- the autoDelete
-
getAutoDeleteTimeout
public Long getAutoDeleteTimeout()
Gets the autoDeleteTimeout. If `auto_delete` is `true`, and this scheduled action has finished, the hours after which it will be automatically deleted. If the value is `0`, the action will be deleted once it has finished. This value may be modifiable in the future.- Returns:
- the autoDeleteTimeout
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that the instance group manager action was created.- Returns:
- the createdAt
-
getHref
public String getHref()
Gets the href. The URL for this instance group manager action.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this instance group manager action.- Returns:
- the id
-
getName
public String getName()
Gets the name. The name for this instance group manager action. The name is unique across all actions for the instance group manager.- Returns:
- the name
-
getResourceType
public String getResourceType()
Gets the resourceType. The resource type.- Returns:
- the resourceType
-
getStatus
public String getStatus()
Gets the status. The status of the instance group action - `active`: Action is ready to be run - `completed`: Action was completed successfully - `failed`: Action could not be completed successfully - `incompatible`: Action parameters are not compatible with the group or manager - `omitted`: Action was not applied because this action's manager was disabled.- Returns:
- the status
-
getUpdatedAt
public Date getUpdatedAt()
Gets the updatedAt. The date and time that the instance group manager action was updated.- Returns:
- the updatedAt
-
getActionType
public String getActionType()
Gets the actionType. The type of action for the instance group.- Returns:
- the actionType
-
getCronSpec
public String getCronSpec()
Gets the cronSpec. The cron specification for a recurring scheduled action. Actions can be applied a maximum of one time within a 5 min period.- Returns:
- the cronSpec
-
getLastAppliedAt
public Date getLastAppliedAt()
Gets the lastAppliedAt. The date and time the scheduled action was last applied. If absent, the action has never been applied.- Returns:
- the lastAppliedAt
-
getNextRunAt
public Date getNextRunAt()
Gets the nextRunAt. The date and time the scheduled action will next run. If absent, the system is currently calculating the next run time.- Returns:
- the nextRunAt
-
getGroup
public InstanceGroupManagerScheduledActionGroup getGroup()
Gets the group.- Returns:
- the group
-
getManager
public InstanceGroupManagerScheduledActionManager getManager()
Gets the manager.- Returns:
- the manager
-
-