Class AssessmentTemplate

java.lang.Object
com.amazonaws.services.inspector.model.AssessmentTemplate
All Implemented Interfaces:
Serializable, Cloneable

public class AssessmentTemplate extends Object implements Serializable, Cloneable

Contains information about an Amazon Inspector assessment template. This data type is used as the response element in the DescribeAssessmentTemplates action.

See Also:
  • Constructor Details

    • AssessmentTemplate

      public AssessmentTemplate()
  • Method Details

    • setArn

      public void setArn(String arn)

      The ARN of the assessment template.

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

      public String getArn()

      The ARN of the assessment template.

      Returns:
      The ARN of the assessment template.
    • withArn

      public AssessmentTemplate withArn(String arn)

      The ARN of the assessment template.

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

      public void setName(String name)

      The name of the assessment template.

      Parameters:
      name - The name of the assessment template.
    • getName

      public String getName()

      The name of the assessment template.

      Returns:
      The name of the assessment template.
    • withName

      public AssessmentTemplate withName(String name)

      The name of the assessment template.

      Parameters:
      name - The name of the assessment template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAssessmentTargetArn

      public void setAssessmentTargetArn(String assessmentTargetArn)

      The ARN of the assessment target that corresponds to this assessment template.

      Parameters:
      assessmentTargetArn - The ARN of the assessment target that corresponds to this assessment template.
    • getAssessmentTargetArn

      public String getAssessmentTargetArn()

      The ARN of the assessment target that corresponds to this assessment template.

      Returns:
      The ARN of the assessment target that corresponds to this assessment template.
    • withAssessmentTargetArn

      public AssessmentTemplate withAssessmentTargetArn(String assessmentTargetArn)

      The ARN of the assessment target that corresponds to this assessment template.

      Parameters:
      assessmentTargetArn - The ARN of the assessment target that corresponds to this assessment template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDurationInSeconds

      public void setDurationInSeconds(Integer durationInSeconds)

      The duration in seconds specified for this assessment tempate. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).

      Parameters:
      durationInSeconds - The duration in seconds specified for this assessment tempate. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).
    • getDurationInSeconds

      public Integer getDurationInSeconds()

      The duration in seconds specified for this assessment tempate. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).

      Returns:
      The duration in seconds specified for this assessment tempate. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).
    • withDurationInSeconds

      public AssessmentTemplate withDurationInSeconds(Integer durationInSeconds)

      The duration in seconds specified for this assessment tempate. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).

      Parameters:
      durationInSeconds - The duration in seconds specified for this assessment tempate. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getRulesPackageArns

      public List<String> getRulesPackageArns()

      The rules packages that are specified for this assessment template.

      Returns:
      The rules packages that are specified for this assessment template.
    • setRulesPackageArns

      public void setRulesPackageArns(Collection<String> rulesPackageArns)

      The rules packages that are specified for this assessment template.

      Parameters:
      rulesPackageArns - The rules packages that are specified for this assessment template.
    • withRulesPackageArns

      public AssessmentTemplate withRulesPackageArns(String... rulesPackageArns)

      The rules packages that are specified for this assessment template.

      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 that are specified for this assessment template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withRulesPackageArns

      public AssessmentTemplate withRulesPackageArns(Collection<String> rulesPackageArns)

      The rules packages that are specified for this assessment template.

      Parameters:
      rulesPackageArns - The rules packages that are specified for this assessment template.
      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 from the assessment run that uses this assessment template.

      Returns:
      The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.
    • setUserAttributesForFindings

      public void setUserAttributesForFindings(Collection<Attribute> userAttributesForFindings)

      The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.

      Parameters:
      userAttributesForFindings - The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.
    • withUserAttributesForFindings

      public AssessmentTemplate withUserAttributesForFindings(Attribute... userAttributesForFindings)

      The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.

      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 from the assessment run that uses this assessment template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withUserAttributesForFindings

      public AssessmentTemplate withUserAttributesForFindings(Collection<Attribute> userAttributesForFindings)

      The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.

      Parameters:
      userAttributesForFindings - The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCreatedAt

      public void setCreatedAt(Date createdAt)

      The time at which the assessment template is created.

      Parameters:
      createdAt - The time at which the assessment template is created.
    • getCreatedAt

      public Date getCreatedAt()

      The time at which the assessment template is created.

      Returns:
      The time at which the assessment template is created.
    • withCreatedAt

      public AssessmentTemplate withCreatedAt(Date createdAt)

      The time at which the assessment template is created.

      Parameters:
      createdAt - The time at which the assessment template is created.
      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 AssessmentTemplate clone()
      Overrides:
      clone in class Object