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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssessmentTemplate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssessmentTemplate
clone()
boolean
equals(Object obj)
String
getArn()
The ARN of the assessment template.String
getAssessmentTargetArn()
The ARN of the assessment target that corresponds to this assessment template.Date
getCreatedAt()
The time at which the assessment template is created.Integer
getDurationInSeconds()
The duration in seconds specified for this assessment tempate.String
getName()
The name of the assessment template.List<String>
getRulesPackageArns()
The rules packages that are specified for this assessment template.List<Attribute>
getUserAttributesForFindings()
The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.int
hashCode()
void
setArn(String arn)
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
setName(String name)
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.AssessmentTemplate
withArn(String arn)
The ARN of the assessment template.AssessmentTemplate
withAssessmentTargetArn(String assessmentTargetArn)
The ARN of the assessment target that corresponds to this assessment template.AssessmentTemplate
withCreatedAt(Date createdAt)
The time at which the assessment template is created.AssessmentTemplate
withDurationInSeconds(Integer durationInSeconds)
The duration in seconds specified for this assessment tempate.AssessmentTemplate
withName(String name)
The name of the assessment template.AssessmentTemplate
withRulesPackageArns(String... rulesPackageArns)
The rules packages that are specified for this assessment template.AssessmentTemplate
withRulesPackageArns(Collection<String> rulesPackageArns)
The rules packages that are specified for this assessment template.AssessmentTemplate
withUserAttributesForFindings(Attribute... userAttributesForFindings)
The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.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.
-
-
-
Method Detail
-
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)
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
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)
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
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AssessmentTemplate clone()
-
-