AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetBucketReplicationResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3Control_EXPORTS.h>
9#include <aws/s3control/model/ReplicationConfiguration.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Xml {
19class XmlDocument;
20} // namespace Xml
21} // namespace Utils
22namespace S3Control {
23namespace Model {
25 public:
26 AWS_S3CONTROL_API GetBucketReplicationResult() = default;
29
31
36 inline const ReplicationConfiguration& GetReplicationConfiguration() const { return m_replicationConfiguration; }
37 template <typename ReplicationConfigurationT = ReplicationConfiguration>
38 void SetReplicationConfiguration(ReplicationConfigurationT&& value) {
39 m_replicationConfigurationHasBeenSet = true;
40 m_replicationConfiguration = std::forward<ReplicationConfigurationT>(value);
41 }
42 template <typename ReplicationConfigurationT = ReplicationConfiguration>
43 GetBucketReplicationResult& WithReplicationConfiguration(ReplicationConfigurationT&& value) {
44 SetReplicationConfiguration(std::forward<ReplicationConfigurationT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetRequestId() const { return m_requestId; }
54 template <typename RequestIdT = Aws::String>
55 void SetRequestId(RequestIdT&& value) {
56 m_requestIdHasBeenSet = true;
57 m_requestId = std::forward<RequestIdT>(value);
58 }
59 template <typename RequestIdT = Aws::String>
61 SetRequestId(std::forward<RequestIdT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetHostId() const { return m_hostId; }
71 template <typename HostIdT = Aws::String>
72 void SetHostId(HostIdT&& value) {
73 m_hostIdHasBeenSet = true;
74 m_hostId = std::forward<HostIdT>(value);
75 }
76 template <typename HostIdT = Aws::String>
78 SetHostId(std::forward<HostIdT>(value));
79 return *this;
80 }
82 private:
83 ReplicationConfiguration m_replicationConfiguration;
84
85 Aws::String m_requestId;
86
87 Aws::String m_hostId;
88 bool m_replicationConfigurationHasBeenSet = false;
89 bool m_requestIdHasBeenSet = false;
90 bool m_hostIdHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace S3Control
95} // namespace Aws
GetBucketReplicationResult & WithRequestId(RequestIdT &&value)
AWS_S3CONTROL_API GetBucketReplicationResult()=default
GetBucketReplicationResult & WithReplicationConfiguration(ReplicationConfigurationT &&value)
GetBucketReplicationResult & WithHostId(HostIdT &&value)
void SetReplicationConfiguration(ReplicationConfigurationT &&value)
const ReplicationConfiguration & GetReplicationConfiguration() const
AWS_S3CONTROL_API GetBucketReplicationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3CONTROL_API GetBucketReplicationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument