/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A set of controls in Audit Manager. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ControlSet implements Serializable, Cloneable, StructuredPojo { /** ** The identifier of the control set in the assessment. This is the control set name in a plain string format. *
*/ private String id; /** ** The name of the control set. *
*/ private String name; /** ** The list of controls within the control set. *
*/ private java.util.List* The identifier of the control set in the assessment. This is the control set name in a plain string format. *
* * @param id * The identifier of the control set in the assessment. This is the control set name in a plain string * format. */ public void setId(String id) { this.id = id; } /** ** The identifier of the control set in the assessment. This is the control set name in a plain string format. *
* * @return The identifier of the control set in the assessment. This is the control set name in a plain string * format. */ public String getId() { return this.id; } /** ** The identifier of the control set in the assessment. This is the control set name in a plain string format. *
* * @param id * The identifier of the control set in the assessment. This is the control set name in a plain string * format. * @return Returns a reference to this object so that method calls can be chained together. */ public ControlSet withId(String id) { setId(id); return this; } /** ** The name of the control set. *
* * @param name * The name of the control set. */ public void setName(String name) { this.name = name; } /** ** The name of the control set. *
* * @return The name of the control set. */ public String getName() { return this.name; } /** ** The name of the control set. *
* * @param name * The name of the control set. * @return Returns a reference to this object so that method calls can be chained together. */ public ControlSet withName(String name) { setName(name); return this; } /** ** The list of controls within the control set. *
* * @return The list of controls within the control set. */ public java.util.List* The list of controls within the control set. *
* * @param controls * The list of controls within the control set. */ public void setControls(java.util.Collection* The list of controls within the control set. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setControls(java.util.Collection)} or {@link #withControls(java.util.Collection)} if you want to override * the existing values. *
* * @param controls * The list of controls within the control set. * @return Returns a reference to this object so that method calls can be chained together. */ public ControlSet withControls(Control... controls) { if (this.controls == null) { setControls(new java.util.ArrayList* The list of controls within the control set. *
* * @param controls * The list of controls within the control set. * @return Returns a reference to this object so that method calls can be chained together. */ public ControlSet withControls(java.util.Collection