/* * 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.macie2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Specifies S3 buckets to add or remove from the exclusion list defined by the classification scope for an Amazon Macie * account. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class S3ClassificationScopeExclusionUpdate implements Serializable, Cloneable, StructuredPojo { /** ** Depending on the value specified for the update operation (ClassificationScopeUpdateOperation), an array of * strings that: lists the names of buckets to add or remove from the list, or specifies a new set of bucket names * that overwrites all existing names in the list. Each string must be the full name of an S3 bucket. Values are * case sensitive. *
*/ private java.util.List* Specifies how to apply the changes to the exclusion list. Valid values are: *
** ADD - Append the specified bucket names to the current list. *
** REMOVE - Remove the specified bucket names from the current list. *
** REPLACE - Overwrite the current list with the specified list of bucket names. If you specify this value, Amazon * Macie removes all existing names from the list and adds all the specified names to the list. *
** Depending on the value specified for the update operation (ClassificationScopeUpdateOperation), an array of * strings that: lists the names of buckets to add or remove from the list, or specifies a new set of bucket names * that overwrites all existing names in the list. Each string must be the full name of an S3 bucket. Values are * case sensitive. *
* * @return Depending on the value specified for the update operation (ClassificationScopeUpdateOperation), an array * of strings that: lists the names of buckets to add or remove from the list, or specifies a new set of * bucket names that overwrites all existing names in the list. Each string must be the full name of an S3 * bucket. Values are case sensitive. */ public java.util.List* Depending on the value specified for the update operation (ClassificationScopeUpdateOperation), an array of * strings that: lists the names of buckets to add or remove from the list, or specifies a new set of bucket names * that overwrites all existing names in the list. Each string must be the full name of an S3 bucket. Values are * case sensitive. *
* * @param bucketNames * Depending on the value specified for the update operation (ClassificationScopeUpdateOperation), an array * of strings that: lists the names of buckets to add or remove from the list, or specifies a new set of * bucket names that overwrites all existing names in the list. Each string must be the full name of an S3 * bucket. Values are case sensitive. */ public void setBucketNames(java.util.Collection* Depending on the value specified for the update operation (ClassificationScopeUpdateOperation), an array of * strings that: lists the names of buckets to add or remove from the list, or specifies a new set of bucket names * that overwrites all existing names in the list. Each string must be the full name of an S3 bucket. Values are * case sensitive. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setBucketNames(java.util.Collection)} or {@link #withBucketNames(java.util.Collection)} if you want to * override the existing values. *
* * @param bucketNames * Depending on the value specified for the update operation (ClassificationScopeUpdateOperation), an array * of strings that: lists the names of buckets to add or remove from the list, or specifies a new set of * bucket names that overwrites all existing names in the list. Each string must be the full name of an S3 * bucket. Values are case sensitive. * @return Returns a reference to this object so that method calls can be chained together. */ public S3ClassificationScopeExclusionUpdate withBucketNames(String... bucketNames) { if (this.bucketNames == null) { setBucketNames(new java.util.ArrayList* Depending on the value specified for the update operation (ClassificationScopeUpdateOperation), an array of * strings that: lists the names of buckets to add or remove from the list, or specifies a new set of bucket names * that overwrites all existing names in the list. Each string must be the full name of an S3 bucket. Values are * case sensitive. *
* * @param bucketNames * Depending on the value specified for the update operation (ClassificationScopeUpdateOperation), an array * of strings that: lists the names of buckets to add or remove from the list, or specifies a new set of * bucket names that overwrites all existing names in the list. Each string must be the full name of an S3 * bucket. Values are case sensitive. * @return Returns a reference to this object so that method calls can be chained together. */ public S3ClassificationScopeExclusionUpdate withBucketNames(java.util.Collection* Specifies how to apply the changes to the exclusion list. Valid values are: *
** ADD - Append the specified bucket names to the current list. *
** REMOVE - Remove the specified bucket names from the current list. *
** REPLACE - Overwrite the current list with the specified list of bucket names. If you specify this value, Amazon * Macie removes all existing names from the list and adds all the specified names to the list. *
** ADD - Append the specified bucket names to the current list. *
** REMOVE - Remove the specified bucket names from the current list. *
** REPLACE - Overwrite the current list with the specified list of bucket names. If you specify this value, * Amazon Macie removes all existing names from the list and adds all the specified names to the list. *
** Specifies how to apply the changes to the exclusion list. Valid values are: *
** ADD - Append the specified bucket names to the current list. *
** REMOVE - Remove the specified bucket names from the current list. *
** REPLACE - Overwrite the current list with the specified list of bucket names. If you specify this value, Amazon * Macie removes all existing names from the list and adds all the specified names to the list. *
** ADD - Append the specified bucket names to the current list. *
** REMOVE - Remove the specified bucket names from the current list. *
** REPLACE - Overwrite the current list with the specified list of bucket names. If you specify this value, * Amazon Macie removes all existing names from the list and adds all the specified names to the list. *
** Specifies how to apply the changes to the exclusion list. Valid values are: *
** ADD - Append the specified bucket names to the current list. *
** REMOVE - Remove the specified bucket names from the current list. *
** REPLACE - Overwrite the current list with the specified list of bucket names. If you specify this value, Amazon * Macie removes all existing names from the list and adds all the specified names to the list. *
** ADD - Append the specified bucket names to the current list. *
** REMOVE - Remove the specified bucket names from the current list. *
** REPLACE - Overwrite the current list with the specified list of bucket names. If you specify this value, * Amazon Macie removes all existing names from the list and adds all the specified names to the list. *
** Specifies how to apply the changes to the exclusion list. Valid values are: *
** ADD - Append the specified bucket names to the current list. *
** REMOVE - Remove the specified bucket names from the current list. *
** REPLACE - Overwrite the current list with the specified list of bucket names. If you specify this value, Amazon * Macie removes all existing names from the list and adds all the specified names to the list. *
** ADD - Append the specified bucket names to the current list. *
** REMOVE - Remove the specified bucket names from the current list. *
** REPLACE - Overwrite the current list with the specified list of bucket names. If you specify this value, * Amazon Macie removes all existing names from the list and adds all the specified names to the list. *
*