@Generated(value="software.amazon.awssdk:codegen") public final class AgentInfo extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AgentInfo.Builder,AgentInfo>
Information about agents or connectors associated with the user’s AWS account. Information includes agent or connector IDs, IP addresses, media access control (MAC) addresses, agent or connector health, hostname where the agent or connector resides, and agent version for each agent.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AgentInfo.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
agentId()
The agent or connector ID.
|
List<AgentNetworkInfo> |
agentNetworkInfoList()
Network details about the host where the agent or connector resides.
|
String |
agentType()
Type of agent.
|
static AgentInfo.Builder |
builder() |
String |
collectionStatus()
Status of the collection process for an agent or connector.
|
String |
connectorId()
The ID of the connector.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAgentNetworkInfoList()
For responses, this returns true if the service returned a value for the AgentNetworkInfoList property.
|
int |
hashCode() |
AgentStatus |
health()
The health of the agent or connector.
|
String |
healthAsString()
The health of the agent or connector.
|
String |
hostName()
The name of the host where the agent or connector resides.
|
String |
lastHealthPingTime()
Time since agent or connector health was reported.
|
String |
registeredTime()
Agent's first registration timestamp in UTC.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AgentInfo.Builder> |
serializableBuilderClass() |
AgentInfo.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
version()
The agent or connector version.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String agentId()
The agent or connector ID.
public final String hostName()
The name of the host where the agent or connector resides. The host can be a server or virtual machine.
public final boolean hasAgentNetworkInfoList()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<AgentNetworkInfo> agentNetworkInfoList()
Network details about the host where the agent or connector resides.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAgentNetworkInfoList() method.
public final String connectorId()
The ID of the connector.
public final String version()
The agent or connector version.
public final AgentStatus health()
The health of the agent or connector.
If the service returns an enum value that is not available in the current SDK version, health will
return AgentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
healthAsString().
AgentStatuspublic final String healthAsString()
The health of the agent or connector.
If the service returns an enum value that is not available in the current SDK version, health will
return AgentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
healthAsString().
AgentStatuspublic final String lastHealthPingTime()
Time since agent or connector health was reported.
public final String collectionStatus()
Status of the collection process for an agent or connector.
public final String agentType()
Type of agent.
public final String registeredTime()
Agent's first registration timestamp in UTC.
public AgentInfo.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AgentInfo.Builder,AgentInfo>public static AgentInfo.Builder builder()
public static Class<? extends AgentInfo.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.