AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
UpgradeDomainRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/OpenSearchServiceRequest.h>
10#include <aws/opensearch/OpenSearchService_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace OpenSearchService {
16namespace Model {
17
25 public:
26 AWS_OPENSEARCHSERVICE_API UpgradeDomainRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpgradeDomain"; }
33
34 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetDomainName() const { return m_domainName; }
41 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
42 template <typename DomainNameT = Aws::String>
43 void SetDomainName(DomainNameT&& value) {
44 m_domainNameHasBeenSet = true;
45 m_domainName = std::forward<DomainNameT>(value);
46 }
47 template <typename DomainNameT = Aws::String>
48 UpgradeDomainRequest& WithDomainName(DomainNameT&& value) {
49 SetDomainName(std::forward<DomainNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetTargetVersion() const { return m_targetVersion; }
60 inline bool TargetVersionHasBeenSet() const { return m_targetVersionHasBeenSet; }
61 template <typename TargetVersionT = Aws::String>
62 void SetTargetVersion(TargetVersionT&& value) {
63 m_targetVersionHasBeenSet = true;
64 m_targetVersion = std::forward<TargetVersionT>(value);
65 }
66 template <typename TargetVersionT = Aws::String>
67 UpgradeDomainRequest& WithTargetVersion(TargetVersionT&& value) {
68 SetTargetVersion(std::forward<TargetVersionT>(value));
69 return *this;
70 }
72
74
78 inline bool GetPerformCheckOnly() const { return m_performCheckOnly; }
79 inline bool PerformCheckOnlyHasBeenSet() const { return m_performCheckOnlyHasBeenSet; }
80 inline void SetPerformCheckOnly(bool value) {
81 m_performCheckOnlyHasBeenSet = true;
82 m_performCheckOnly = value;
83 }
86 return *this;
87 }
89
91
97 inline const Aws::Map<Aws::String, Aws::String>& GetAdvancedOptions() const { return m_advancedOptions; }
98 inline bool AdvancedOptionsHasBeenSet() const { return m_advancedOptionsHasBeenSet; }
99 template <typename AdvancedOptionsT = Aws::Map<Aws::String, Aws::String>>
100 void SetAdvancedOptions(AdvancedOptionsT&& value) {
101 m_advancedOptionsHasBeenSet = true;
102 m_advancedOptions = std::forward<AdvancedOptionsT>(value);
103 }
104 template <typename AdvancedOptionsT = Aws::Map<Aws::String, Aws::String>>
105 UpgradeDomainRequest& WithAdvancedOptions(AdvancedOptionsT&& value) {
106 SetAdvancedOptions(std::forward<AdvancedOptionsT>(value));
107 return *this;
108 }
109 template <typename AdvancedOptionsKeyT = Aws::String, typename AdvancedOptionsValueT = Aws::String>
110 UpgradeDomainRequest& AddAdvancedOptions(AdvancedOptionsKeyT&& key, AdvancedOptionsValueT&& value) {
111 m_advancedOptionsHasBeenSet = true;
112 m_advancedOptions.emplace(std::forward<AdvancedOptionsKeyT>(key), std::forward<AdvancedOptionsValueT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_domainName;
118
119 Aws::String m_targetVersion;
120
121 bool m_performCheckOnly{false};
122
123 Aws::Map<Aws::String, Aws::String> m_advancedOptions;
124 bool m_domainNameHasBeenSet = false;
125 bool m_targetVersionHasBeenSet = false;
126 bool m_performCheckOnlyHasBeenSet = false;
127 bool m_advancedOptionsHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace OpenSearchService
132} // namespace Aws
UpgradeDomainRequest & WithTargetVersion(TargetVersionT &&value)
UpgradeDomainRequest & WithAdvancedOptions(AdvancedOptionsT &&value)
UpgradeDomainRequest & AddAdvancedOptions(AdvancedOptionsKeyT &&key, AdvancedOptionsValueT &&value)
virtual const char * GetServiceRequestName() const override
UpgradeDomainRequest & WithDomainName(DomainNameT &&value)
AWS_OPENSEARCHSERVICE_API UpgradeDomainRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetAdvancedOptions() const
UpgradeDomainRequest & WithPerformCheckOnly(bool value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String