Class AssessmentTemplate
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getArn()
The ARN of the assessment template.The ARN of the assessment target that corresponds to this assessment template.The time at which the assessment template is created.The duration in seconds specified for this assessment tempate.getName()
The name of the assessment template.The rules packages that are specified for this assessment template.The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.int
hashCode()
void
The ARN of the assessment template.void
setAssessmentTargetArn
(String assessmentTargetArn) The ARN of the assessment target that corresponds to this assessment template.void
setCreatedAt
(Date createdAt) The time at which the assessment template is created.void
setDurationInSeconds
(Integer durationInSeconds) The duration in seconds specified for this assessment tempate.void
The name of the assessment template.void
setRulesPackageArns
(Collection<String> rulesPackageArns) The rules packages that are specified for this assessment template.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.toString()
Returns a string representation of this object; useful for testing and debugging.The ARN of the assessment template.withAssessmentTargetArn
(String assessmentTargetArn) The ARN of the assessment target that corresponds to this assessment template.withCreatedAt
(Date createdAt) The time at which the assessment template is created.withDurationInSeconds
(Integer durationInSeconds) The duration in seconds specified for this assessment tempate.The name of the assessment template.withRulesPackageArns
(String... rulesPackageArns) The rules packages that are specified for this assessment template.withRulesPackageArns
(Collection<String> rulesPackageArns) The rules packages that are specified for this assessment template.withUserAttributesForFindings
(Attribute... userAttributesForFindings) The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.withUserAttributesForFindings
(Collection<Attribute> userAttributesForFindings) The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.
-
Constructor Details
-
AssessmentTemplate
public AssessmentTemplate()
-
-
Method Details
-
setArn
The ARN of the assessment template.
- Parameters:
arn
- The ARN of the assessment template.
-
getArn
The ARN of the assessment template.
- Returns:
- The ARN of the assessment template.
-
withArn
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
The name of the assessment template.
- Parameters:
name
- The name of the assessment template.
-
getName
The name of the assessment template.
- Returns:
- The name of the assessment template.
-
withName
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
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
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
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
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
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
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
The rules packages that are specified for this assessment template.
- Returns:
- The rules packages that are specified for this assessment template.
-
setRulesPackageArns
The rules packages that are specified for this assessment template.
- Parameters:
rulesPackageArns
- The rules packages that are specified for this assessment template.
-
withRulesPackageArns
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)
orwithRulesPackageArns(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
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
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
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
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)
orwithUserAttributesForFindings(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
The time at which the assessment template is created.
- Parameters:
createdAt
- The time at which the assessment template is created.
-
getCreatedAt
The time at which the assessment template is created.
- Returns:
- The time at which the assessment template is created.
-
withCreatedAt
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-