@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DeleteAgent extends Object implements Serializable, Cloneable, StructuredPojo
An object representing the agent or data collector to be deleted along with the optional configurations for error handling.
Constructor and Description |
---|
DeleteAgent() |
Modifier and Type | Method and Description |
---|---|
DeleteAgent |
clone() |
boolean |
equals(Object obj) |
String |
getAgentId()
The ID of the agent or data collector to delete.
|
Boolean |
getForce()
Optional flag used to force delete an agent or data collector.
|
int |
hashCode() |
Boolean |
isForce()
Optional flag used to force delete an agent or data collector.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAgentId(String agentId)
The ID of the agent or data collector to delete.
|
void |
setForce(Boolean force)
Optional flag used to force delete an agent or data collector.
|
String |
toString()
Returns a string representation of this object.
|
DeleteAgent |
withAgentId(String agentId)
The ID of the agent or data collector to delete.
|
DeleteAgent |
withForce(Boolean force)
Optional flag used to force delete an agent or data collector.
|
public void setAgentId(String agentId)
The ID of the agent or data collector to delete.
agentId
- The ID of the agent or data collector to delete.public String getAgentId()
The ID of the agent or data collector to delete.
public DeleteAgent withAgentId(String agentId)
The ID of the agent or data collector to delete.
agentId
- The ID of the agent or data collector to delete.public void setForce(Boolean force)
Optional flag used to force delete an agent or data collector. It is needed to delete any agent in HEALTHY/UNHEALTHY/RUNNING status. Note that deleting an agent that is actively reporting health causes it to be re-registered with a different agent ID after data collector re-connects with Amazon Web Services.
force
- Optional flag used to force delete an agent or data collector. It is needed to delete any agent in
HEALTHY/UNHEALTHY/RUNNING status. Note that deleting an agent that is actively reporting health causes it
to be re-registered with a different agent ID after data collector re-connects with Amazon Web Services.public Boolean getForce()
Optional flag used to force delete an agent or data collector. It is needed to delete any agent in HEALTHY/UNHEALTHY/RUNNING status. Note that deleting an agent that is actively reporting health causes it to be re-registered with a different agent ID after data collector re-connects with Amazon Web Services.
public DeleteAgent withForce(Boolean force)
Optional flag used to force delete an agent or data collector. It is needed to delete any agent in HEALTHY/UNHEALTHY/RUNNING status. Note that deleting an agent that is actively reporting health causes it to be re-registered with a different agent ID after data collector re-connects with Amazon Web Services.
force
- Optional flag used to force delete an agent or data collector. It is needed to delete any agent in
HEALTHY/UNHEALTHY/RUNNING status. Note that deleting an agent that is actively reporting health causes it
to be re-registered with a different agent ID after data collector re-connects with Amazon Web Services.public Boolean isForce()
Optional flag used to force delete an agent or data collector. It is needed to delete any agent in HEALTHY/UNHEALTHY/RUNNING status. Note that deleting an agent that is actively reporting health causes it to be re-registered with a different agent ID after data collector re-connects with Amazon Web Services.
public String toString()
toString
in class Object
Object.toString()
public DeleteAgent clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.