Class InstanceAgentCommandExecution
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.computeinstanceagent.model.InstanceAgentCommandExecution
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20180530") public final class InstanceAgentCommandExecution extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelA command’s execution summary.
Note: Objects should always be created or deserialized using theInstanceAgentCommandExecution.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theInstanceAgentCommandExecution.Builder, which maintain a set of all explicitly set fields calledInstanceAgentCommandExecution.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInstanceAgentCommandExecution.Builderstatic classInstanceAgentCommandExecution.DeliveryStateSpecifies the command delivery state.static classInstanceAgentCommandExecution.LifecycleStatecommand execution life cycle state.
-
Constructor Summary
Constructors Constructor Description InstanceAgentCommandExecution(String instanceAgentCommandId, String instanceId, InstanceAgentCommandExecution.DeliveryState deliveryState, InstanceAgentCommandExecution.LifecycleState lifecycleState, Date timeCreated, Date timeUpdated, Long sequenceNumber, String displayName, InstanceAgentCommandExecutionOutputContent content)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InstanceAgentCommandExecution.Builderbuilder()Create a new builder.booleanequals(Object o)InstanceAgentCommandExecutionOutputContentgetContent()InstanceAgentCommandExecution.DeliveryStategetDeliveryState()Specifies the command delivery state.StringgetDisplayName()The user friendly display name of the command.StringgetInstanceAgentCommandId()The OCID of the commandStringgetInstanceId()The OCID of the instanceInstanceAgentCommandExecution.LifecycleStategetLifecycleState()command execution life cycle state.LonggetSequenceNumber()The large non-consecutive number that Run Command Service assigns to each created command.DategetTimeCreated()The command creation dateDategetTimeUpdated()The command last updated at date.inthashCode()InstanceAgentCommandExecution.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
InstanceAgentCommandExecution
@Deprecated @ConstructorProperties({"instanceAgentCommandId","instanceId","deliveryState","lifecycleState","timeCreated","timeUpdated","sequenceNumber","displayName","content"}) public InstanceAgentCommandExecution(String instanceAgentCommandId, String instanceId, InstanceAgentCommandExecution.DeliveryState deliveryState, InstanceAgentCommandExecution.LifecycleState lifecycleState, Date timeCreated, Date timeUpdated, Long sequenceNumber, String displayName, InstanceAgentCommandExecutionOutputContent content)
Deprecated.
-
-
Method Detail
-
builder
public static InstanceAgentCommandExecution.Builder builder()
Create a new builder.
-
toBuilder
public InstanceAgentCommandExecution.Builder toBuilder()
-
getInstanceAgentCommandId
public String getInstanceAgentCommandId()
The OCID of the command- Returns:
- the value
-
getInstanceId
public String getInstanceId()
The OCID of the instance- Returns:
- the value
-
getDeliveryState
public InstanceAgentCommandExecution.DeliveryState getDeliveryState()
Specifies the command delivery state.- VISIBLE - The command is visible to instance.
- PENDING - The command is pending ack from the instance. * ACKED - The command has been received and acked by the instance. * ACKED_CANCELED - The canceled command has been received and acked by the instance. * EXPIRED - The instance has not requested for commands and its delivery has expired.
- Returns:
- the value
-
getLifecycleState
public InstanceAgentCommandExecution.LifecycleState getLifecycleState()
command execution life cycle state.- ACCEPTED - The command execution has been accepted to run. * IN_PROGRESS - The command execution is in progress. * SUCCEEDED - The command execution is successful. * FAILED - The command execution has failed. * TIMED_OUT - The command execution has timedout. * CANCELED - The command execution has canceled.
- Returns:
- the value
-
getTimeCreated
public Date getTimeCreated()
The command creation date- Returns:
- the value
-
getTimeUpdated
public Date getTimeUpdated()
The command last updated at date.- Returns:
- the value
-
getSequenceNumber
public Long getSequenceNumber()
The large non-consecutive number that Run Command Service assigns to each created command.- Returns:
- the value
-
getDisplayName
public String getDisplayName()
The user friendly display name of the command.- Returns:
- the value
-
getContent
public InstanceAgentCommandExecutionOutputContent getContent()
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-