/* * 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 controlSet
entity that represents a collection of controls in Audit Manager. This doesn't contain the
* control set ID.
*
* The unique identifier for the control set. *
*/ private String id; /** ** The name of the control set. *
*/ private String name; /** ** The list of controls that are contained within the control set. *
*/ private java.util.List* The unique identifier for the control set. *
* * @param id * The unique identifier for the control set. */ public void setId(String id) { this.id = id; } /** ** The unique identifier for the control set. *
* * @return The unique identifier for the control set. */ public String getId() { return this.id; } /** ** The unique identifier for the control set. *
* * @param id * The unique identifier for the control set. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAssessmentFrameworkControlSet 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 UpdateAssessmentFrameworkControlSet withName(String name) { setName(name); return this; } /** ** The list of controls that are contained within the control set. *
* * @return The list of controls that are contained within the control set. */ public java.util.List* The list of controls that are contained within the control set. *
* * @param controls * The list of controls that are contained within the control set. */ public void setControls(java.util.Collection* The list of controls that are contained 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 that are contained within the control set. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAssessmentFrameworkControlSet withControls(CreateAssessmentFrameworkControl... controls) { if (this.controls == null) { setControls(new java.util.ArrayList* The list of controls that are contained within the control set. *
* * @param controls * The list of controls that are contained within the control set. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAssessmentFrameworkControlSet withControls(java.util.Collection