AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpgradeDomainRequest.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/OpenSearchServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace OpenSearchService
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_OPENSEARCHSERVICE_API UpgradeDomainRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpgradeDomain"; }
36
37 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetDomainName() const { return m_domainName; }
45 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
46 template<typename DomainNameT = Aws::String>
47 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
48 template<typename DomainNameT = Aws::String>
49 UpgradeDomainRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
51
53
57 inline const Aws::String& GetTargetVersion() const { return m_targetVersion; }
58 inline bool TargetVersionHasBeenSet() const { return m_targetVersionHasBeenSet; }
59 template<typename TargetVersionT = Aws::String>
60 void SetTargetVersion(TargetVersionT&& value) { m_targetVersionHasBeenSet = true; m_targetVersion = std::forward<TargetVersionT>(value); }
61 template<typename TargetVersionT = Aws::String>
62 UpgradeDomainRequest& WithTargetVersion(TargetVersionT&& value) { SetTargetVersion(std::forward<TargetVersionT>(value)); return *this;}
64
66
70 inline bool GetPerformCheckOnly() const { return m_performCheckOnly; }
71 inline bool PerformCheckOnlyHasBeenSet() const { return m_performCheckOnlyHasBeenSet; }
72 inline void SetPerformCheckOnly(bool value) { m_performCheckOnlyHasBeenSet = true; m_performCheckOnly = value; }
73 inline UpgradeDomainRequest& WithPerformCheckOnly(bool value) { SetPerformCheckOnly(value); return *this;}
75
77
83 inline const Aws::Map<Aws::String, Aws::String>& GetAdvancedOptions() const { return m_advancedOptions; }
84 inline bool AdvancedOptionsHasBeenSet() const { return m_advancedOptionsHasBeenSet; }
85 template<typename AdvancedOptionsT = Aws::Map<Aws::String, Aws::String>>
86 void SetAdvancedOptions(AdvancedOptionsT&& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions = std::forward<AdvancedOptionsT>(value); }
87 template<typename AdvancedOptionsT = Aws::Map<Aws::String, Aws::String>>
88 UpgradeDomainRequest& WithAdvancedOptions(AdvancedOptionsT&& value) { SetAdvancedOptions(std::forward<AdvancedOptionsT>(value)); return *this;}
89 template<typename AdvancedOptionsKeyT = Aws::String, typename AdvancedOptionsValueT = Aws::String>
90 UpgradeDomainRequest& AddAdvancedOptions(AdvancedOptionsKeyT&& key, AdvancedOptionsValueT&& value) {
91 m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(std::forward<AdvancedOptionsKeyT>(key), std::forward<AdvancedOptionsValueT>(value)); return *this;
92 }
94 private:
95
96 Aws::String m_domainName;
97 bool m_domainNameHasBeenSet = false;
98
99 Aws::String m_targetVersion;
100 bool m_targetVersionHasBeenSet = false;
101
102 bool m_performCheckOnly{false};
103 bool m_performCheckOnlyHasBeenSet = false;
104
105 Aws::Map<Aws::String, Aws::String> m_advancedOptions;
106 bool m_advancedOptionsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace OpenSearchService
111} // 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