/** * 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 { /** *

Provides information about settings that define whether one or more objects * in an S3 bucket are replicated to S3 buckets for other AWS accounts and, if so, * which accounts.

See Also:

AWS * API Reference

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

Specifies whether the bucket is configured to replicate one or more objects * to any destination.

*/ inline bool GetReplicated() const{ return m_replicated; } /** *

Specifies whether the bucket is configured to replicate one or more objects * to any destination.

*/ inline bool ReplicatedHasBeenSet() const { return m_replicatedHasBeenSet; } /** *

Specifies whether the bucket is configured to replicate one or more objects * to any destination.

*/ inline void SetReplicated(bool value) { m_replicatedHasBeenSet = true; m_replicated = value; } /** *

Specifies whether the bucket is configured to replicate one or more objects * to any destination.

*/ inline ReplicationDetails& WithReplicated(bool value) { SetReplicated(value); return *this;} /** *

Specifies whether the bucket is configured to replicate one or more objects * to an AWS account that isn't part of the Amazon Macie organization.

*/ inline bool GetReplicatedExternally() const{ return m_replicatedExternally; } /** *

Specifies whether the bucket is configured to replicate one or more objects * to an AWS account that isn't part of the Amazon Macie organization.

*/ inline bool ReplicatedExternallyHasBeenSet() const { return m_replicatedExternallyHasBeenSet; } /** *

Specifies whether the bucket is configured to replicate one or more objects * to an AWS account that isn't part of the Amazon Macie organization.

*/ inline void SetReplicatedExternally(bool value) { m_replicatedExternallyHasBeenSet = true; m_replicatedExternally = value; } /** *

Specifies whether the bucket is configured to replicate one or more objects * to an AWS account that isn't part of the Amazon Macie organization.

*/ inline ReplicationDetails& WithReplicatedExternally(bool value) { SetReplicatedExternally(value); return *this;} /** *

An array of AWS account IDs, one for each AWS account that the bucket is * configured to replicate one or more objects to.

*/ inline const Aws::Vector& GetReplicationAccounts() const{ return m_replicationAccounts; } /** *

An array of AWS account IDs, one for each AWS account that the bucket is * configured to replicate one or more objects to.

*/ inline bool ReplicationAccountsHasBeenSet() const { return m_replicationAccountsHasBeenSet; } /** *

An array of AWS account IDs, one for each AWS account that the bucket is * configured to replicate one or more objects to.

*/ inline void SetReplicationAccounts(const Aws::Vector& value) { m_replicationAccountsHasBeenSet = true; m_replicationAccounts = value; } /** *

An array of AWS account IDs, one for each AWS account that the bucket is * configured to replicate one or more objects to.

*/ inline void SetReplicationAccounts(Aws::Vector&& value) { m_replicationAccountsHasBeenSet = true; m_replicationAccounts = std::move(value); } /** *

An array of AWS account IDs, one for each AWS account that the bucket is * configured to replicate one or more objects to.

*/ inline ReplicationDetails& WithReplicationAccounts(const Aws::Vector& value) { SetReplicationAccounts(value); return *this;} /** *

An array of AWS account IDs, one for each AWS account that the bucket is * configured to replicate one or more objects to.

*/ inline ReplicationDetails& WithReplicationAccounts(Aws::Vector&& value) { SetReplicationAccounts(std::move(value)); return *this;} /** *

An array of AWS account IDs, one for each AWS account that the bucket is * configured to replicate one or more objects to.

*/ inline ReplicationDetails& AddReplicationAccounts(const Aws::String& value) { m_replicationAccountsHasBeenSet = true; m_replicationAccounts.push_back(value); return *this; } /** *

An array of AWS account IDs, one for each AWS account that the bucket is * configured to replicate one or more objects to.

*/ inline ReplicationDetails& AddReplicationAccounts(Aws::String&& value) { m_replicationAccountsHasBeenSet = true; m_replicationAccounts.push_back(std::move(value)); return *this; } /** *

An array of AWS account IDs, one for each AWS account that the bucket is * configured to replicate one or more objects to.

*/ inline ReplicationDetails& AddReplicationAccounts(const char* value) { m_replicationAccountsHasBeenSet = true; m_replicationAccounts.push_back(value); return *this; } private: bool m_replicated; bool m_replicatedHasBeenSet; bool m_replicatedExternally; bool m_replicatedExternallyHasBeenSet; Aws::Vector m_replicationAccounts; bool m_replicationAccountsHasBeenSet; }; } // namespace Model } // namespace Macie2 } // namespace Aws