Class AgentAlreadyRunningAssessment

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class AgentAlreadyRunningAssessment
    extends Object
    implements Serializable, Cloneable

    Used in the exception error that is thrown if you start an assessment run for an assessment target that includes an EC2 instance that is already participating in another started assessment run.

    See Also:
    Serialized Form
    • Constructor Detail

      • AgentAlreadyRunningAssessment

        public AgentAlreadyRunningAssessment()
    • Method Detail

      • setAgentId

        public void setAgentId​(String agentId)

        ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.

        Parameters:
        agentId - ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.
      • getAgentId

        public String getAgentId()

        ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.

        Returns:
        ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.
      • withAgentId

        public AgentAlreadyRunningAssessment withAgentId​(String agentId)

        ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.

        Parameters:
        agentId - ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAssessmentRunArn

        public void setAssessmentRunArn​(String assessmentRunArn)

        The ARN of the assessment run that has already been started.

        Parameters:
        assessmentRunArn - The ARN of the assessment run that has already been started.
      • getAssessmentRunArn

        public String getAssessmentRunArn()

        The ARN of the assessment run that has already been started.

        Returns:
        The ARN of the assessment run that has already been started.
      • withAssessmentRunArn

        public AgentAlreadyRunningAssessment withAssessmentRunArn​(String assessmentRunArn)

        The ARN of the assessment run that has already been started.

        Parameters:
        assessmentRunArn - The ARN of the assessment run that has already been started.
        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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object