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

Specifies an Amazon Web Services account that owns S3 buckets for a * classification job to analyze, and one or more specific buckets to analyze for * that account.

See Also:

AWS * API Reference

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

The unique identifier for the Amazon Web Services account that owns the * buckets.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The unique identifier for the Amazon Web Services account that owns the * buckets.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The unique identifier for the Amazon Web Services account that owns the * buckets.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The unique identifier for the Amazon Web Services account that owns the * buckets.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The unique identifier for the Amazon Web Services account that owns the * buckets.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The unique identifier for the Amazon Web Services account that owns the * buckets.

*/ inline S3BucketDefinitionForJob& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The unique identifier for the Amazon Web Services account that owns the * buckets.

*/ inline S3BucketDefinitionForJob& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The unique identifier for the Amazon Web Services account that owns the * buckets.

*/ inline S3BucketDefinitionForJob& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

An array that lists the names of the buckets.

*/ inline const Aws::Vector& GetBuckets() const{ return m_buckets; } /** *

An array that lists the names of the buckets.

*/ inline bool BucketsHasBeenSet() const { return m_bucketsHasBeenSet; } /** *

An array that lists the names of the buckets.

*/ inline void SetBuckets(const Aws::Vector& value) { m_bucketsHasBeenSet = true; m_buckets = value; } /** *

An array that lists the names of the buckets.

*/ inline void SetBuckets(Aws::Vector&& value) { m_bucketsHasBeenSet = true; m_buckets = std::move(value); } /** *

An array that lists the names of the buckets.

*/ inline S3BucketDefinitionForJob& WithBuckets(const Aws::Vector& value) { SetBuckets(value); return *this;} /** *

An array that lists the names of the buckets.

*/ inline S3BucketDefinitionForJob& WithBuckets(Aws::Vector&& value) { SetBuckets(std::move(value)); return *this;} /** *

An array that lists the names of the buckets.

*/ inline S3BucketDefinitionForJob& AddBuckets(const Aws::String& value) { m_bucketsHasBeenSet = true; m_buckets.push_back(value); return *this; } /** *

An array that lists the names of the buckets.

*/ inline S3BucketDefinitionForJob& AddBuckets(Aws::String&& value) { m_bucketsHasBeenSet = true; m_buckets.push_back(std::move(value)); return *this; } /** *

An array that lists the names of the buckets.

*/ inline S3BucketDefinitionForJob& AddBuckets(const char* value) { m_bucketsHasBeenSet = true; m_buckets.push_back(value); return *this; } private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::Vector m_buckets; bool m_bucketsHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws