Class CreateAssessmentTemplateRequest

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

public class CreateAssessmentTemplateRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
See Also:
  • Constructor Details

    • CreateAssessmentTemplateRequest

      public CreateAssessmentTemplateRequest()
  • Method Details

    • setAssessmentTargetArn

      public void setAssessmentTargetArn(String assessmentTargetArn)

      The ARN that specifies the assessment target for which you want to create the assessment template.

      Parameters:
      assessmentTargetArn - The ARN that specifies the assessment target for which you want to create the assessment template.
    • getAssessmentTargetArn

      public String getAssessmentTargetArn()

      The ARN that specifies the assessment target for which you want to create the assessment template.

      Returns:
      The ARN that specifies the assessment target for which you want to create the assessment template.
    • withAssessmentTargetArn

      public CreateAssessmentTemplateRequest withAssessmentTargetArn(String assessmentTargetArn)

      The ARN that specifies the assessment target for which you want to create the assessment template.

      Parameters:
      assessmentTargetArn - The ARN that specifies the assessment target for which you want to create the assessment template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAssessmentTemplateName

      public void setAssessmentTemplateName(String assessmentTemplateName)

      The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for an assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.

      Parameters:
      assessmentTemplateName - The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for an assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.
    • getAssessmentTemplateName

      public String getAssessmentTemplateName()

      The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for an assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.

      Returns:
      The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for an assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.
    • withAssessmentTemplateName

      public CreateAssessmentTemplateRequest withAssessmentTemplateName(String assessmentTemplateName)

      The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for an assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.

      Parameters:
      assessmentTemplateName - The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for an assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDurationInSeconds

      public void setDurationInSeconds(Integer durationInSeconds)

      The duration of the assessment run in seconds. The default value is 3600 seconds (one hour).

      Parameters:
      durationInSeconds - The duration of the assessment run in seconds. The default value is 3600 seconds (one hour).
    • getDurationInSeconds

      public Integer getDurationInSeconds()

      The duration of the assessment run in seconds. The default value is 3600 seconds (one hour).

      Returns:
      The duration of the assessment run in seconds. The default value is 3600 seconds (one hour).
    • withDurationInSeconds

      public CreateAssessmentTemplateRequest withDurationInSeconds(Integer durationInSeconds)

      The duration of the assessment run in seconds. The default value is 3600 seconds (one hour).

      Parameters:
      durationInSeconds - The duration of the assessment run in seconds. The default value is 3600 seconds (one hour).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getRulesPackageArns

      public List<String> getRulesPackageArns()

      The ARNs that specify the rules packages that you want to attach to the assessment template.

      Returns:
      The ARNs that specify the rules packages that you want to attach to the assessment template.
    • setRulesPackageArns

      public void setRulesPackageArns(Collection<String> rulesPackageArns)

      The ARNs that specify the rules packages that you want to attach to the assessment template.

      Parameters:
      rulesPackageArns - The ARNs that specify the rules packages that you want to attach to the assessment template.
    • withRulesPackageArns

      public CreateAssessmentTemplateRequest withRulesPackageArns(String... rulesPackageArns)

      The ARNs that specify the rules packages that you want to attach to the 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 ARNs that specify the rules packages that you want to attach to the assessment template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withRulesPackageArns

      public CreateAssessmentTemplateRequest withRulesPackageArns(Collection<String> rulesPackageArns)

      The ARNs that specify the rules packages that you want to attach to the assessment template.

      Parameters:
      rulesPackageArns - The ARNs that specify the rules packages that you want to attach to the 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 finding that is generated by the assessment run that uses this assessment template.

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

      public void setUserAttributesForFindings(Collection<Attribute> userAttributesForFindings)

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

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

      public CreateAssessmentTemplateRequest withUserAttributesForFindings(Attribute... userAttributesForFindings)

      The user-defined attributes that are assigned to every finding that is generated by 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 finding that is generated by 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 CreateAssessmentTemplateRequest withUserAttributesForFindings(Collection<Attribute> userAttributesForFindings)

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

      Parameters:
      userAttributesForFindings - The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.
      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

      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: