/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.auditmanager.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateAssessmentRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the assessment to be created. *
*/ private String name; /** ** The optional description of the assessment to be created. *
*/ private String description; /** ** The assessment report storage destination for the assessment that's being created. *
*/ private AssessmentReportsDestination assessmentReportsDestination; private Scope scope; /** ** The list of roles for the assessment. *
*/ private java.util.List* The identifier for the framework that the assessment will be created from. *
*/ private String frameworkId; /** ** The tags that are associated with the assessment. *
*/ private java.util.Map* The name of the assessment to be created. *
* * @param name * The name of the assessment to be created. */ public void setName(String name) { this.name = name; } /** ** The name of the assessment to be created. *
* * @return The name of the assessment to be created. */ public String getName() { return this.name; } /** ** The name of the assessment to be created. *
* * @param name * The name of the assessment to be created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAssessmentRequest withName(String name) { setName(name); return this; } /** ** The optional description of the assessment to be created. *
* * @param description * The optional description of the assessment to be created. */ public void setDescription(String description) { this.description = description; } /** ** The optional description of the assessment to be created. *
* * @return The optional description of the assessment to be created. */ public String getDescription() { return this.description; } /** ** The optional description of the assessment to be created. *
* * @param description * The optional description of the assessment to be created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAssessmentRequest withDescription(String description) { setDescription(description); return this; } /** ** The assessment report storage destination for the assessment that's being created. *
* * @param assessmentReportsDestination * The assessment report storage destination for the assessment that's being created. */ public void setAssessmentReportsDestination(AssessmentReportsDestination assessmentReportsDestination) { this.assessmentReportsDestination = assessmentReportsDestination; } /** ** The assessment report storage destination for the assessment that's being created. *
* * @return The assessment report storage destination for the assessment that's being created. */ public AssessmentReportsDestination getAssessmentReportsDestination() { return this.assessmentReportsDestination; } /** ** The assessment report storage destination for the assessment that's being created. *
* * @param assessmentReportsDestination * The assessment report storage destination for the assessment that's being created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAssessmentRequest withAssessmentReportsDestination(AssessmentReportsDestination assessmentReportsDestination) { setAssessmentReportsDestination(assessmentReportsDestination); return this; } /** * @param scope */ public void setScope(Scope scope) { this.scope = scope; } /** * @return */ public Scope getScope() { return this.scope; } /** * @param scope * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAssessmentRequest withScope(Scope scope) { setScope(scope); return this; } /** ** The list of roles for the assessment. *
* * @return The list of roles for the assessment. */ public java.util.List* The list of roles for the assessment. *
* * @param roles * The list of roles for the assessment. */ public void setRoles(java.util.Collection* The list of roles for the assessment. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRoles(java.util.Collection)} or {@link #withRoles(java.util.Collection)} if you want to override the * existing values. *
* * @param roles * The list of roles for the assessment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAssessmentRequest withRoles(Role... roles) { if (this.roles == null) { setRoles(new java.util.ArrayList* The list of roles for the assessment. *
* * @param roles * The list of roles for the assessment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAssessmentRequest withRoles(java.util.Collection* The identifier for the framework that the assessment will be created from. *
* * @param frameworkId * The identifier for the framework that the assessment will be created from. */ public void setFrameworkId(String frameworkId) { this.frameworkId = frameworkId; } /** ** The identifier for the framework that the assessment will be created from. *
* * @return The identifier for the framework that the assessment will be created from. */ public String getFrameworkId() { return this.frameworkId; } /** ** The identifier for the framework that the assessment will be created from. *
* * @param frameworkId * The identifier for the framework that the assessment will be created from. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAssessmentRequest withFrameworkId(String frameworkId) { setFrameworkId(frameworkId); return this; } /** ** The tags that are associated with the assessment. *
* * @return The tags that are associated with the assessment. */ public java.util.Map* The tags that are associated with the assessment. *
* * @param tags * The tags that are associated with the assessment. */ public void setTags(java.util.Map* The tags that are associated with the assessment. *
* * @param tags * The tags that are associated with the assessment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAssessmentRequest withTags(java.util.Map