Class ManagedAgent
- java.lang.Object
-
- software.amazon.awssdk.services.ecs.model.ManagedAgent
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ManagedAgent.Builder,ManagedAgent>
@Generated("software.amazon.awssdk:codegen") public final class ManagedAgent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ManagedAgent.Builder,ManagedAgent>
Details about the managed agent status for the container.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceManagedAgent.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ManagedAgent.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastStartedAt()The Unix timestamp for the time when the managed agent was last started.StringlastStatus()The last known status of the managed agent.ManagedAgentNamename()The name of the managed agent.StringnameAsString()The name of the managed agent.Stringreason()The reason for why the managed agent is in the state it is in.List<SdkField<?>>sdkFields()static Class<? extends ManagedAgent.Builder>serializableBuilderClass()ManagedAgent.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
lastStartedAt
public final Instant lastStartedAt()
The Unix timestamp for the time when the managed agent was last started.
- Returns:
- The Unix timestamp for the time when the managed agent was last started.
-
name
public final ManagedAgentName name()
The name of the managed agent. When the execute command feature is turned on, the managed agent name is
ExecuteCommandAgent.If the service returns an enum value that is not available in the current SDK version,
namewill returnManagedAgentName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The name of the managed agent. When the execute command feature is turned on, the managed agent name is
ExecuteCommandAgent. - See Also:
ManagedAgentName
-
nameAsString
public final String nameAsString()
The name of the managed agent. When the execute command feature is turned on, the managed agent name is
ExecuteCommandAgent.If the service returns an enum value that is not available in the current SDK version,
namewill returnManagedAgentName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The name of the managed agent. When the execute command feature is turned on, the managed agent name is
ExecuteCommandAgent. - See Also:
ManagedAgentName
-
reason
public final String reason()
The reason for why the managed agent is in the state it is in.
- Returns:
- The reason for why the managed agent is in the state it is in.
-
lastStatus
public final String lastStatus()
The last known status of the managed agent.
- Returns:
- The last known status of the managed agent.
-
toBuilder
public ManagedAgent.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ManagedAgent.Builder,ManagedAgent>
-
builder
public static ManagedAgent.Builder builder()
-
serializableBuilderClass
public static Class<? extends ManagedAgent.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-