@Generated(value="software.amazon.awssdk:codegen") public final class DescribeAgentResponse extends DataSyncResponse implements ToCopyableBuilder<DescribeAgentResponse.Builder,DescribeAgentResponse>
DescribeAgentResponse
| Modifier and Type | Class and Description |
|---|---|
static interface |
DescribeAgentResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
agentArn()
The Amazon Resource Name (ARN) of the agent.
|
static DescribeAgentResponse.Builder |
builder() |
Instant |
creationTime()
The time that the agent was activated (that is, created in your account).
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse. |
int |
hashCode() |
Instant |
lastConnectionTime()
The time that the agent was last connected.
|
String |
name()
The name of the agent.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DescribeAgentResponse.Builder> |
serializableBuilderClass() |
AgentStatus |
status()
The status of the agent.
|
String |
statusAsString()
The status of the agent.
|
DescribeAgentResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
responseMetadatasdkHttpResponsecopypublic String agentArn()
The Amazon Resource Name (ARN) of the agent.
public String name()
The name of the agent.
public AgentStatus status()
The status of the agent. If the status is ONLINE, then the agent is configured properly and is available to use. The Running status is the normal running status for an agent. If the status is OFFLINE, the agent's VM is turned off or the agent is in an unhealthy state. When the issue that caused the unhealthy state is resolved, the agent returns to ONLINE status.
If the service returns an enum value that is not available in the current SDK version, status will
return AgentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
AgentStatuspublic String statusAsString()
The status of the agent. If the status is ONLINE, then the agent is configured properly and is available to use. The Running status is the normal running status for an agent. If the status is OFFLINE, the agent's VM is turned off or the agent is in an unhealthy state. When the issue that caused the unhealthy state is resolved, the agent returns to ONLINE status.
If the service returns an enum value that is not available in the current SDK version, status will
return AgentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
AgentStatuspublic Instant lastConnectionTime()
The time that the agent was last connected.
public Instant creationTime()
The time that the agent was activated (that is, created in your account).
public DescribeAgentResponse.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<DescribeAgentResponse.Builder,DescribeAgentResponse>toBuilder in class AwsResponsepublic static DescribeAgentResponse.Builder builder()
public static Class<? extends DescribeAgentResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponseSdkResponse. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class) method will
again be available.getValueForField in class SdkResponsefieldName - The name of the member to be retrieved.clazz - The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.