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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateAssessmentTemplateRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateAssessmentTemplateRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getAssessmentTargetArn()
The ARN that specifies the assessment target for which you want to create the assessment template.String
getAssessmentTemplateName()
The user-defined name that identifies the assessment template that you want to create.Integer
getDurationInSeconds()
The duration of the assessment run in seconds.List<String>
getRulesPackageArns()
The ARNs that specify the rules packages that you want to attach to the assessment template.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.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.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateAssessmentTemplateRequest
withAssessmentTargetArn(String assessmentTargetArn)
The ARN that specifies the assessment target for which you want to create the assessment template.CreateAssessmentTemplateRequest
withAssessmentTemplateName(String assessmentTemplateName)
The user-defined name that identifies the assessment template that you want to create.CreateAssessmentTemplateRequest
withDurationInSeconds(Integer durationInSeconds)
The duration of the assessment run in seconds.CreateAssessmentTemplateRequest
withRulesPackageArns(String... rulesPackageArns)
The ARNs that specify the rules packages that you want to attach to the assessment template.CreateAssessmentTemplateRequest
withRulesPackageArns(Collection<String> rulesPackageArns)
The ARNs that specify the rules packages that you want to attach to the assessment template.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.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.-
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
-
-
-
-
Method Detail
-
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)
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
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)
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
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 CreateAssessmentTemplateRequest 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:
Object.clone()
-
-