/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { /** *

Specifies S3 buckets to add or remove from the exclusion list defined by the * classification scope for an Amazon Macie account.

See Also:

AWS * API Reference

*/ class S3ClassificationScopeExclusionUpdate { public: AWS_MACIE2_API S3ClassificationScopeExclusionUpdate(); AWS_MACIE2_API S3ClassificationScopeExclusionUpdate(Aws::Utils::Json::JsonView jsonValue); AWS_MACIE2_API S3ClassificationScopeExclusionUpdate& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

*/ inline const Aws::Vector& GetBucketNames() const{ return m_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.

*/ inline bool BucketNamesHasBeenSet() const { return m_bucketNamesHasBeenSet; } /** *

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.

*/ inline void SetBucketNames(const Aws::Vector& value) { m_bucketNamesHasBeenSet = true; m_bucketNames = value; } /** *

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.

*/ inline void SetBucketNames(Aws::Vector&& value) { m_bucketNamesHasBeenSet = true; m_bucketNames = std::move(value); } /** *

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.

*/ inline S3ClassificationScopeExclusionUpdate& WithBucketNames(const Aws::Vector& value) { SetBucketNames(value); return *this;} /** *

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.

*/ inline S3ClassificationScopeExclusionUpdate& WithBucketNames(Aws::Vector&& value) { SetBucketNames(std::move(value)); return *this;} /** *

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.

*/ inline S3ClassificationScopeExclusionUpdate& AddBucketNames(const Aws::String& value) { m_bucketNamesHasBeenSet = true; m_bucketNames.push_back(value); return *this; } /** *

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.

*/ inline S3ClassificationScopeExclusionUpdate& AddBucketNames(Aws::String&& value) { m_bucketNamesHasBeenSet = true; m_bucketNames.push_back(std::move(value)); return *this; } /** *

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.

*/ inline S3ClassificationScopeExclusionUpdate& AddBucketNames(const char* value) { m_bucketNamesHasBeenSet = true; m_bucketNames.push_back(value); return *this; } /** *

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.

*/ inline const ClassificationScopeUpdateOperation& GetOperation() const{ return m_operation; } /** *

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.

*/ inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; } /** *

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.

*/ inline void SetOperation(const ClassificationScopeUpdateOperation& value) { m_operationHasBeenSet = true; m_operation = value; } /** *

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.

*/ inline void SetOperation(ClassificationScopeUpdateOperation&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); } /** *

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.

*/ inline S3ClassificationScopeExclusionUpdate& WithOperation(const ClassificationScopeUpdateOperation& value) { SetOperation(value); return *this;} /** *

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.

*/ inline S3ClassificationScopeExclusionUpdate& WithOperation(ClassificationScopeUpdateOperation&& value) { SetOperation(std::move(value)); return *this;} private: Aws::Vector m_bucketNames; bool m_bucketNamesHasBeenSet = false; ClassificationScopeUpdateOperation m_operation; bool m_operationHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws