/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace S3Control { namespace Model { class GetBucketReplicationResult { public: AWS_S3CONTROL_API GetBucketReplicationResult(); AWS_S3CONTROL_API GetBucketReplicationResult(const Aws::AmazonWebServiceResult& result); AWS_S3CONTROL_API GetBucketReplicationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A container for one or more replication rules. A replication configuration * must have at least one rule and you can add up to 100 rules. The maximum size of * a replication configuration is 128 KB.

*/ inline const ReplicationConfiguration& GetReplicationConfiguration() const{ return m_replicationConfiguration; } /** *

A container for one or more replication rules. A replication configuration * must have at least one rule and you can add up to 100 rules. The maximum size of * a replication configuration is 128 KB.

*/ inline void SetReplicationConfiguration(const ReplicationConfiguration& value) { m_replicationConfiguration = value; } /** *

A container for one or more replication rules. A replication configuration * must have at least one rule and you can add up to 100 rules. The maximum size of * a replication configuration is 128 KB.

*/ inline void SetReplicationConfiguration(ReplicationConfiguration&& value) { m_replicationConfiguration = std::move(value); } /** *

A container for one or more replication rules. A replication configuration * must have at least one rule and you can add up to 100 rules. The maximum size of * a replication configuration is 128 KB.

*/ inline GetBucketReplicationResult& WithReplicationConfiguration(const ReplicationConfiguration& value) { SetReplicationConfiguration(value); return *this;} /** *

A container for one or more replication rules. A replication configuration * must have at least one rule and you can add up to 100 rules. The maximum size of * a replication configuration is 128 KB.

*/ inline GetBucketReplicationResult& WithReplicationConfiguration(ReplicationConfiguration&& value) { SetReplicationConfiguration(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetBucketReplicationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetBucketReplicationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetBucketReplicationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ReplicationConfiguration m_replicationConfiguration; Aws::String m_requestId; }; } // namespace Model } // namespace S3Control } // namespace Aws