AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
GetBucketReplicationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3control/S3Control_EXPORTS.h>
10#include <aws/s3control/model/ReplicationConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace S3Control {
24namespace Model {
26 public:
27 AWS_S3CONTROL_API GetBucketReplicationResult() = default;
30
32
37 inline const ReplicationConfiguration& GetReplicationConfiguration() const { return m_replicationConfiguration; }
38 template <typename ReplicationConfigurationT = ReplicationConfiguration>
39 void SetReplicationConfiguration(ReplicationConfigurationT&& value) {
40 m_replicationConfigurationHasBeenSet = true;
41 m_replicationConfiguration = std::forward<ReplicationConfigurationT>(value);
42 }
43 template <typename ReplicationConfigurationT = ReplicationConfiguration>
44 GetBucketReplicationResult& WithReplicationConfiguration(ReplicationConfigurationT&& value) {
45 SetReplicationConfiguration(std::forward<ReplicationConfigurationT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetRequestId() const { return m_requestId; }
55 template <typename RequestIdT = Aws::String>
56 void SetRequestId(RequestIdT&& value) {
57 m_requestIdHasBeenSet = true;
58 m_requestId = std::forward<RequestIdT>(value);
59 }
60 template <typename RequestIdT = Aws::String>
62 SetRequestId(std::forward<RequestIdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetHostId() const { return m_hostId; }
72 template <typename HostIdT = Aws::String>
73 void SetHostId(HostIdT&& value) {
74 m_hostIdHasBeenSet = true;
75 m_hostId = std::forward<HostIdT>(value);
76 }
77 template <typename HostIdT = Aws::String>
79 SetHostId(std::forward<HostIdT>(value));
80 return *this;
81 }
83 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
84
85 private:
86 ReplicationConfiguration m_replicationConfiguration;
87
88 Aws::String m_requestId;
89
90 Aws::String m_hostId;
91 Aws::Http::HttpResponseCode m_HttpResponseCode;
92 bool m_replicationConfigurationHasBeenSet = false;
93 bool m_requestIdHasBeenSet = false;
94 bool m_hostIdHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace S3Control
99} // 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