Class AssessmentRun

    • Constructor Detail

      • AssessmentRun

        public AssessmentRun()
    • Method Detail

      • setArn

        public void setArn​(String arn)

        The ARN of the assessment run.

        Parameters:
        arn - The ARN of the assessment run.
      • getArn

        public String getArn()

        The ARN of the assessment run.

        Returns:
        The ARN of the assessment run.
      • withArn

        public AssessmentRun withArn​(String arn)

        The ARN of the assessment run.

        Parameters:
        arn - The ARN of the assessment run.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setName

        public void setName​(String name)

        The auto-generated name for the assessment run.

        Parameters:
        name - The auto-generated name for the assessment run.
      • getName

        public String getName()

        The auto-generated name for the assessment run.

        Returns:
        The auto-generated name for the assessment run.
      • withName

        public AssessmentRun withName​(String name)

        The auto-generated name for the assessment run.

        Parameters:
        name - The auto-generated name for the assessment run.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAssessmentTemplateArn

        public void setAssessmentTemplateArn​(String assessmentTemplateArn)

        The ARN of the assessment template that is associated with the assessment run.

        Parameters:
        assessmentTemplateArn - The ARN of the assessment template that is associated with the assessment run.
      • getAssessmentTemplateArn

        public String getAssessmentTemplateArn()

        The ARN of the assessment template that is associated with the assessment run.

        Returns:
        The ARN of the assessment template that is associated with the assessment run.
      • withAssessmentTemplateArn

        public AssessmentRun withAssessmentTemplateArn​(String assessmentTemplateArn)

        The ARN of the assessment template that is associated with the assessment run.

        Parameters:
        assessmentTemplateArn - The ARN of the assessment template that is associated with the assessment run.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setState

        public void setState​(String state)

        The state of the assessment run.

        Parameters:
        state - The state of the assessment run.
        See Also:
        AssessmentRunState
      • getState

        public String getState()

        The state of the assessment run.

        Returns:
        The state of the assessment run.
        See Also:
        AssessmentRunState
      • withState

        public AssessmentRun withState​(String state)

        The state of the assessment run.

        Parameters:
        state - The state of the assessment run.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AssessmentRunState
      • withState

        public AssessmentRun withState​(AssessmentRunState state)

        The state of the assessment run.

        Parameters:
        state - The state of the assessment run.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AssessmentRunState
      • setDurationInSeconds

        public void setDurationInSeconds​(Integer durationInSeconds)

        The duration of the assessment run.

        Parameters:
        durationInSeconds - The duration of the assessment run.
      • getDurationInSeconds

        public Integer getDurationInSeconds()

        The duration of the assessment run.

        Returns:
        The duration of the assessment run.
      • withDurationInSeconds

        public AssessmentRun withDurationInSeconds​(Integer durationInSeconds)

        The duration of the assessment run.

        Parameters:
        durationInSeconds - The duration of the assessment run.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getRulesPackageArns

        public List<String> getRulesPackageArns()

        The rules packages selected for the assessment run.

        Returns:
        The rules packages selected for the assessment run.
      • setRulesPackageArns

        public void setRulesPackageArns​(Collection<String> rulesPackageArns)

        The rules packages selected for the assessment run.

        Parameters:
        rulesPackageArns - The rules packages selected for the assessment run.
      • withRulesPackageArns

        public AssessmentRun withRulesPackageArns​(String... rulesPackageArns)

        The rules packages selected for the assessment run.

        NOTE: This method appends the values to the existing list (if any). Use setRulesPackageArns(java.util.Collection) or withRulesPackageArns(java.util.Collection) if you want to override the existing values.

        Parameters:
        rulesPackageArns - The rules packages selected for the assessment run.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withRulesPackageArns

        public AssessmentRun withRulesPackageArns​(Collection<String> rulesPackageArns)

        The rules packages selected for the assessment run.

        Parameters:
        rulesPackageArns - The rules packages selected for the assessment run.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getUserAttributesForFindings

        public List<Attribute> getUserAttributesForFindings()

        The user-defined attributes that are assigned to every generated finding.

        Returns:
        The user-defined attributes that are assigned to every generated finding.
      • setUserAttributesForFindings

        public void setUserAttributesForFindings​(Collection<Attribute> userAttributesForFindings)

        The user-defined attributes that are assigned to every generated finding.

        Parameters:
        userAttributesForFindings - The user-defined attributes that are assigned to every generated finding.
      • withUserAttributesForFindings

        public AssessmentRun withUserAttributesForFindings​(Attribute... userAttributesForFindings)

        The user-defined attributes that are assigned to every generated finding.

        NOTE: This method appends the values to the existing list (if any). Use setUserAttributesForFindings(java.util.Collection) or withUserAttributesForFindings(java.util.Collection) if you want to override the existing values.

        Parameters:
        userAttributesForFindings - The user-defined attributes that are assigned to every generated finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withUserAttributesForFindings

        public AssessmentRun withUserAttributesForFindings​(Collection<Attribute> userAttributesForFindings)

        The user-defined attributes that are assigned to every generated finding.

        Parameters:
        userAttributesForFindings - The user-defined attributes that are assigned to every generated finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withCreatedAt

        public AssessmentRun withCreatedAt​(Date createdAt)

        The time when StartAssessmentRun was called.

        Parameters:
        createdAt - The time when StartAssessmentRun was called.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withStartedAt

        public AssessmentRun withStartedAt​(Date startedAt)

        The time when StartAssessmentRun was called.

        Parameters:
        startedAt - The time when StartAssessmentRun was called.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setCompletedAt

        public void setCompletedAt​(Date completedAt)

        The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.

        Parameters:
        completedAt - The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
      • getCompletedAt

        public Date getCompletedAt()

        The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.

        Returns:
        The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
      • withCompletedAt

        public AssessmentRun withCompletedAt​(Date completedAt)

        The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.

        Parameters:
        completedAt - The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setStateChangedAt

        public void setStateChangedAt​(Date stateChangedAt)

        The last time when the assessment run's state changed.

        Parameters:
        stateChangedAt - The last time when the assessment run's state changed.
      • getStateChangedAt

        public Date getStateChangedAt()

        The last time when the assessment run's state changed.

        Returns:
        The last time when the assessment run's state changed.
      • withStateChangedAt

        public AssessmentRun withStateChangedAt​(Date stateChangedAt)

        The last time when the assessment run's state changed.

        Parameters:
        stateChangedAt - The last time when the assessment run's state changed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDataCollected

        public void setDataCollected​(Boolean dataCollected)

        A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.

        Parameters:
        dataCollected - A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.
      • getDataCollected

        public Boolean getDataCollected()

        A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.

        Returns:
        A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.
      • withDataCollected

        public AssessmentRun withDataCollected​(Boolean dataCollected)

        A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.

        Parameters:
        dataCollected - A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isDataCollected

        public Boolean isDataCollected()

        A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.

        Returns:
        A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.
      • getStateChanges

        public List<AssessmentRunStateChange> getStateChanges()

        A list of the assessment run state changes.

        Returns:
        A list of the assessment run state changes.
      • setStateChanges

        public void setStateChanges​(Collection<AssessmentRunStateChange> stateChanges)

        A list of the assessment run state changes.

        Parameters:
        stateChanges - A list of the assessment run state changes.
      • withStateChanges

        public AssessmentRun withStateChanges​(Collection<AssessmentRunStateChange> stateChanges)

        A list of the assessment run state changes.

        Parameters:
        stateChanges - A list of the assessment run state changes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getNotifications

        public List<AssessmentRunNotification> getNotifications()

        A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.

        Returns:
        A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
      • setNotifications

        public void setNotifications​(Collection<AssessmentRunNotification> notifications)

        A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.

        Parameters:
        notifications - A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
      • withNotifications

        public AssessmentRun withNotifications​(AssessmentRunNotification... notifications)

        A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.

        NOTE: This method appends the values to the existing list (if any). Use setNotifications(java.util.Collection) or withNotifications(java.util.Collection) if you want to override the existing values.

        Parameters:
        notifications - A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withNotifications

        public AssessmentRun withNotifications​(Collection<AssessmentRunNotification> notifications)

        A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.

        Parameters:
        notifications - A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
        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