/* * 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.backup.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A framework consists of one or more controls. Each control has its own control scope. The control scope can include * one or more resource types, a combination of a tag key and value, or a combination of one resource type and one * resource ID. If no scope is specified, evaluations for the rule are triggered when any resource in your recording * group changes in configuration. *
*
* To set a control scope that includes all of a particular resource, leave the ControlScope
empty or do
* not pass it when calling CreateFramework
.
*
* The ID of the only Amazon Web Services resource that you want your control scope to contain. *
*/ private java.util.List
* Describes whether the control scope includes one or more types of resources, such as EFS
or
* RDS
.
*
* The tag key-value pair applied to those Amazon Web Services resources that you want to trigger an evaluation for
* a rule. A maximum of one key-value pair can be provided. The tag value is optional, but it cannot be an empty
* string. The structure to assign a tag is: [{"Key":"string","Value":"string"}]
.
*
* The ID of the only Amazon Web Services resource that you want your control scope to contain. *
* * @return The ID of the only Amazon Web Services resource that you want your control scope to contain. */ public java.util.List* The ID of the only Amazon Web Services resource that you want your control scope to contain. *
* * @param complianceResourceIds * The ID of the only Amazon Web Services resource that you want your control scope to contain. */ public void setComplianceResourceIds(java.util.Collection* The ID of the only Amazon Web Services resource that you want your control scope to contain. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setComplianceResourceIds(java.util.Collection)} or * {@link #withComplianceResourceIds(java.util.Collection)} if you want to override the existing values. *
* * @param complianceResourceIds * The ID of the only Amazon Web Services resource that you want your control scope to contain. * @return Returns a reference to this object so that method calls can be chained together. */ public ControlScope withComplianceResourceIds(String... complianceResourceIds) { if (this.complianceResourceIds == null) { setComplianceResourceIds(new java.util.ArrayList* The ID of the only Amazon Web Services resource that you want your control scope to contain. *
* * @param complianceResourceIds * The ID of the only Amazon Web Services resource that you want your control scope to contain. * @return Returns a reference to this object so that method calls can be chained together. */ public ControlScope withComplianceResourceIds(java.util.Collection
* Describes whether the control scope includes one or more types of resources, such as EFS
or
* RDS
.
*
EFS
or
* RDS
.
*/
public java.util.List
* Describes whether the control scope includes one or more types of resources, such as EFS
or
* RDS
.
*
EFS
or
* RDS
.
*/
public void setComplianceResourceTypes(java.util.Collection
* Describes whether the control scope includes one or more types of resources, such as EFS
or
* RDS
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setComplianceResourceTypes(java.util.Collection)} or * {@link #withComplianceResourceTypes(java.util.Collection)} if you want to override the existing values. *
* * @param complianceResourceTypes * Describes whether the control scope includes one or more types of resources, such asEFS
or
* RDS
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ControlScope withComplianceResourceTypes(String... complianceResourceTypes) {
if (this.complianceResourceTypes == null) {
setComplianceResourceTypes(new java.util.ArrayList
* Describes whether the control scope includes one or more types of resources, such as EFS
or
* RDS
.
*
EFS
or
* RDS
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ControlScope withComplianceResourceTypes(java.util.Collection
* The tag key-value pair applied to those Amazon Web Services resources that you want to trigger an evaluation for
* a rule. A maximum of one key-value pair can be provided. The tag value is optional, but it cannot be an empty
* string. The structure to assign a tag is: [{"Key":"string","Value":"string"}]
.
*
[{"Key":"string","Value":"string"}]
.
*/
public java.util.Map
* The tag key-value pair applied to those Amazon Web Services resources that you want to trigger an evaluation for
* a rule. A maximum of one key-value pair can be provided. The tag value is optional, but it cannot be an empty
* string. The structure to assign a tag is: [{"Key":"string","Value":"string"}]
.
*
[{"Key":"string","Value":"string"}]
.
*/
public void setTags(java.util.Map
* The tag key-value pair applied to those Amazon Web Services resources that you want to trigger an evaluation for
* a rule. A maximum of one key-value pair can be provided. The tag value is optional, but it cannot be an empty
* string. The structure to assign a tag is: [{"Key":"string","Value":"string"}]
.
*
[{"Key":"string","Value":"string"}]
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ControlScope withTags(java.util.Map