Class InstanceAgentCommandExecution


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20180530")
    public final class InstanceAgentCommandExecution
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    A command’s execution summary.
    Note: Objects should always be created or deserialized using the InstanceAgentCommandExecution.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 the InstanceAgentCommandExecution.Builder, which maintain a set of all explicitly set fields called InstanceAgentCommandExecution.Builder.__explicitlySet__. The hashCode() and equals(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).
    • Method Detail

      • 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
      • toString

        public String toString()
        Overrides:
        toString in class com.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:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel