Class CreateAssessmentTemplateRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The ARN that specifies the assessment target for which you want to create the assessment template.The user-defined name that identifies the assessment template that you want to create.The duration of the assessment run in seconds.The ARNs that specify the rules packages that you want to attach to the assessment template.The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.int
hashCode()
void
setAssessmentTargetArn
(String assessmentTargetArn) The ARN that specifies the assessment target for which you want to create the assessment template.void
setAssessmentTemplateName
(String assessmentTemplateName) The user-defined name that identifies the assessment template that you want to create.void
setDurationInSeconds
(Integer durationInSeconds) The duration of the assessment run in seconds.void
setRulesPackageArns
(Collection<String> rulesPackageArns) The ARNs that specify the rules packages that you want to attach to the assessment template.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.toString()
Returns a string representation of this object; useful for testing and debugging.withAssessmentTargetArn
(String assessmentTargetArn) The ARN that specifies the assessment target for which you want to create the assessment template.withAssessmentTemplateName
(String assessmentTemplateName) The user-defined name that identifies the assessment template that you want to create.withDurationInSeconds
(Integer durationInSeconds) The duration of the assessment run in seconds.withRulesPackageArns
(String... rulesPackageArns) The ARNs that specify the rules packages that you want to attach to the assessment template.withRulesPackageArns
(Collection<String> rulesPackageArns) The ARNs that specify the rules packages that you want to attach to the assessment template.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.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.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
CreateAssessmentTemplateRequest
public CreateAssessmentTemplateRequest()
-
-
Method Details
-
setAssessmentTargetArn
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
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
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
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
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
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
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
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
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
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
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
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)
orwithRulesPackageArns(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
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
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
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)
orwithUserAttributesForFindings(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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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 classAmazonWebServiceRequest
- See Also:
-