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:
  • Constructor Details

    • AgentPreview

      public AgentPreview()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public AgentPreview clone()
      Overrides:
      clone in class Object