AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
AddReplicationPeerRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchServiceRequest.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace OpenSearchService {
15namespace Model {
16
20 public:
21 AWS_OPENSEARCHSERVICE_API AddReplicationPeerRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "AddReplicationPeer"; }
28
29 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
30
32
33 inline const Aws::String& GetDomainName() const { return m_domainName; }
34 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
35 template <typename DomainNameT = Aws::String>
36 void SetDomainName(DomainNameT&& value) {
37 m_domainNameHasBeenSet = true;
38 m_domainName = std::forward<DomainNameT>(value);
39 }
40 template <typename DomainNameT = Aws::String>
42 SetDomainName(std::forward<DomainNameT>(value));
43 return *this;
44 }
46
48
53 inline const Aws::String& GetPeerDomainArn() const { return m_peerDomainArn; }
54 inline bool PeerDomainArnHasBeenSet() const { return m_peerDomainArnHasBeenSet; }
55 template <typename PeerDomainArnT = Aws::String>
56 void SetPeerDomainArn(PeerDomainArnT&& value) {
57 m_peerDomainArnHasBeenSet = true;
58 m_peerDomainArn = std::forward<PeerDomainArnT>(value);
59 }
60 template <typename PeerDomainArnT = Aws::String>
62 SetPeerDomainArn(std::forward<PeerDomainArnT>(value));
63 return *this;
64 }
66
68
72 inline bool GetDryRun() const { return m_dryRun; }
73 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
74 inline void SetDryRun(bool value) {
75 m_dryRunHasBeenSet = true;
76 m_dryRun = value;
77 }
79 SetDryRun(value);
80 return *this;
81 }
83 private:
84 Aws::String m_domainName;
85
86 Aws::String m_peerDomainArn;
87
88 bool m_dryRun{false};
89 bool m_domainNameHasBeenSet = false;
90 bool m_peerDomainArnHasBeenSet = false;
91 bool m_dryRunHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace OpenSearchService
96} // namespace Aws
AddReplicationPeerRequest & WithPeerDomainArn(PeerDomainArnT &&value)
AWS_OPENSEARCHSERVICE_API AddReplicationPeerRequest()=default
AddReplicationPeerRequest & WithDomainName(DomainNameT &&value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String