/* * 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 CreateControlRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the control. *
*/ private String name; /** ** The description of the control. *
*/ private String description; /** ** The steps to follow to determine if the control is satisfied. *
*/ private String testingInformation; /** ** The title of the action plan for remediating the control. *
*/ private String actionPlanTitle; /** ** The recommended actions to carry out if the control isn't fulfilled. *
*/ private String actionPlanInstructions; /** ** The data mapping sources for the control. *
*/ private java.util.List* The tags that are associated with the control. *
*/ private java.util.Map* The name of the control. *
* * @param name * The name of the control. */ public void setName(String name) { this.name = name; } /** ** The name of the control. *
* * @return The name of the control. */ public String getName() { return this.name; } /** ** The name of the control. *
* * @param name * The name of the control. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateControlRequest withName(String name) { setName(name); return this; } /** ** The description of the control. *
* * @param description * The description of the control. */ public void setDescription(String description) { this.description = description; } /** ** The description of the control. *
* * @return The description of the control. */ public String getDescription() { return this.description; } /** ** The description of the control. *
* * @param description * The description of the control. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateControlRequest withDescription(String description) { setDescription(description); return this; } /** ** The steps to follow to determine if the control is satisfied. *
* * @param testingInformation * The steps to follow to determine if the control is satisfied. */ public void setTestingInformation(String testingInformation) { this.testingInformation = testingInformation; } /** ** The steps to follow to determine if the control is satisfied. *
* * @return The steps to follow to determine if the control is satisfied. */ public String getTestingInformation() { return this.testingInformation; } /** ** The steps to follow to determine if the control is satisfied. *
* * @param testingInformation * The steps to follow to determine if the control is satisfied. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateControlRequest withTestingInformation(String testingInformation) { setTestingInformation(testingInformation); return this; } /** ** The title of the action plan for remediating the control. *
* * @param actionPlanTitle * The title of the action plan for remediating the control. */ public void setActionPlanTitle(String actionPlanTitle) { this.actionPlanTitle = actionPlanTitle; } /** ** The title of the action plan for remediating the control. *
* * @return The title of the action plan for remediating the control. */ public String getActionPlanTitle() { return this.actionPlanTitle; } /** ** The title of the action plan for remediating the control. *
* * @param actionPlanTitle * The title of the action plan for remediating the control. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateControlRequest withActionPlanTitle(String actionPlanTitle) { setActionPlanTitle(actionPlanTitle); return this; } /** ** The recommended actions to carry out if the control isn't fulfilled. *
* * @param actionPlanInstructions * The recommended actions to carry out if the control isn't fulfilled. */ public void setActionPlanInstructions(String actionPlanInstructions) { this.actionPlanInstructions = actionPlanInstructions; } /** ** The recommended actions to carry out if the control isn't fulfilled. *
* * @return The recommended actions to carry out if the control isn't fulfilled. */ public String getActionPlanInstructions() { return this.actionPlanInstructions; } /** ** The recommended actions to carry out if the control isn't fulfilled. *
* * @param actionPlanInstructions * The recommended actions to carry out if the control isn't fulfilled. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateControlRequest withActionPlanInstructions(String actionPlanInstructions) { setActionPlanInstructions(actionPlanInstructions); return this; } /** ** The data mapping sources for the control. *
* * @return The data mapping sources for the control. */ public java.util.List* The data mapping sources for the control. *
* * @param controlMappingSources * The data mapping sources for the control. */ public void setControlMappingSources(java.util.Collection* The data mapping sources for the control. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setControlMappingSources(java.util.Collection)} or * {@link #withControlMappingSources(java.util.Collection)} if you want to override the existing values. *
* * @param controlMappingSources * The data mapping sources for the control. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateControlRequest withControlMappingSources(CreateControlMappingSource... controlMappingSources) { if (this.controlMappingSources == null) { setControlMappingSources(new java.util.ArrayList* The data mapping sources for the control. *
* * @param controlMappingSources * The data mapping sources for the control. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateControlRequest withControlMappingSources(java.util.Collection* The tags that are associated with the control. *
* * @return The tags that are associated with the control. */ public java.util.Map* The tags that are associated with the control. *
* * @param tags * The tags that are associated with the control. */ public void setTags(java.util.Map* The tags that are associated with the control. *
* * @param tags * The tags that are associated with the control. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateControlRequest withTags(java.util.Map