@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AgentListEntry extends Object implements Serializable, Cloneable, StructuredPojo
Represents a single entry in a list (or array) of DataSync agents when you call the ListAgents operation.
Constructor and Description |
---|
AgentListEntry() |
Modifier and Type | Method and Description |
---|---|
AgentListEntry |
clone() |
boolean |
equals(Object obj) |
String |
getAgentArn()
The Amazon Resource Name (ARN) of a DataSync agent.
|
String |
getName()
The name of an agent.
|
String |
getStatus()
The status of an agent.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAgentArn(String agentArn)
The Amazon Resource Name (ARN) of a DataSync agent.
|
void |
setName(String name)
The name of an agent.
|
void |
setStatus(String status)
The status of an agent.
|
String |
toString()
Returns a string representation of this object.
|
AgentListEntry |
withAgentArn(String agentArn)
The Amazon Resource Name (ARN) of a DataSync agent.
|
AgentListEntry |
withName(String name)
The name of an agent.
|
AgentListEntry |
withStatus(AgentStatus status)
The status of an agent.
|
AgentListEntry |
withStatus(String status)
The status of an agent.
|
public void setAgentArn(String agentArn)
The Amazon Resource Name (ARN) of a DataSync agent.
agentArn
- The Amazon Resource Name (ARN) of a DataSync agent.public String getAgentArn()
The Amazon Resource Name (ARN) of a DataSync agent.
public AgentListEntry withAgentArn(String agentArn)
The Amazon Resource Name (ARN) of a DataSync agent.
agentArn
- The Amazon Resource Name (ARN) of a DataSync agent.public void setName(String name)
The name of an agent.
name
- The name of an agent.public String getName()
The name of an agent.
public AgentListEntry withName(String name)
The name of an agent.
name
- The name of an agent.public void setStatus(String status)
The status of an agent. For more information, see DataSync agent statuses.
status
- The status of an agent. For more information, see DataSync agent
statuses.AgentStatus
public String getStatus()
The status of an agent. For more information, see DataSync agent statuses.
AgentStatus
public AgentListEntry withStatus(String status)
The status of an agent. For more information, see DataSync agent statuses.
status
- The status of an agent. For more information, see DataSync agent
statuses.AgentStatus
public AgentListEntry withStatus(AgentStatus status)
The status of an agent. For more information, see DataSync agent statuses.
status
- The status of an agent. For more information, see DataSync agent
statuses.AgentStatus
public String toString()
toString
in class Object
Object.toString()
public AgentListEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.