Class AgentPreview
- java.lang.Object
-
- com.amazonaws.services.inspector.model.AgentPreview
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class AgentPreview extends Object implements Serializable, Cloneable
Used as a response element in the PreviewAgents action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AgentPreview()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentPreview
clone()
boolean
equals(Object obj)
String
getAgentId()
The ID of the EC2 instance where the agent is installed.String
getAutoScalingGroup()
The Auto Scaling group for the EC2 instance where the agent is installed.int
hashCode()
void
setAgentId(String agentId)
The ID of the EC2 instance where the agent is installed.void
setAutoScalingGroup(String autoScalingGroup)
The Auto Scaling group for the EC2 instance where the agent is installed.String
toString()
Returns a string representation of this object; useful for testing and debugging.AgentPreview
withAgentId(String agentId)
The ID of the EC2 instance where the agent is installed.AgentPreview
withAutoScalingGroup(String autoScalingGroup)
The Auto Scaling group for the EC2 instance where the agent is installed.
-
-
-
Method Detail
-
setAgentId
public void setAgentId(String agentId)
The ID of the EC2 instance where the agent is installed.
- Parameters:
agentId
- The ID of the EC2 instance where the agent is installed.
-
getAgentId
public String getAgentId()
The ID of the EC2 instance where the agent is installed.
- Returns:
- The ID of the EC2 instance where the agent is installed.
-
withAgentId
public AgentPreview withAgentId(String agentId)
The ID of the EC2 instance where the agent is installed.
- Parameters:
agentId
- The ID of the EC2 instance where the agent is installed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAutoScalingGroup
public void setAutoScalingGroup(String autoScalingGroup)
The Auto Scaling group for the EC2 instance where the agent is installed.
- Parameters:
autoScalingGroup
- The Auto Scaling group for the EC2 instance where the agent is installed.
-
getAutoScalingGroup
public String getAutoScalingGroup()
The Auto Scaling group for the EC2 instance where the agent is installed.
- Returns:
- The Auto Scaling group for the EC2 instance where the agent is installed.
-
withAutoScalingGroup
public AgentPreview withAutoScalingGroup(String autoScalingGroup)
The Auto Scaling group for the EC2 instance where the agent is installed.
- Parameters:
autoScalingGroup
- The Auto Scaling group for the EC2 instance where the agent is installed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AgentPreview clone()
-
-