AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
47 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
48 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
49 inline UpgradeDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
50 inline UpgradeDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
51 inline UpgradeDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
53
55
59 inline const Aws::String& GetTargetVersion() const{ return m_targetVersion; }
60 inline bool TargetVersionHasBeenSet() const { return m_targetVersionHasBeenSet; }
61 inline void SetTargetVersion(const Aws::String& value) { m_targetVersionHasBeenSet = true; m_targetVersion = value; }
62 inline void SetTargetVersion(Aws::String&& value) { m_targetVersionHasBeenSet = true; m_targetVersion = std::move(value); }
63 inline void SetTargetVersion(const char* value) { m_targetVersionHasBeenSet = true; m_targetVersion.assign(value); }
64 inline UpgradeDomainRequest& WithTargetVersion(const Aws::String& value) { SetTargetVersion(value); return *this;}
65 inline UpgradeDomainRequest& WithTargetVersion(Aws::String&& value) { SetTargetVersion(std::move(value)); return *this;}
66 inline UpgradeDomainRequest& WithTargetVersion(const char* value) { SetTargetVersion(value); return *this;}
68
70
74 inline bool GetPerformCheckOnly() const{ return m_performCheckOnly; }
75 inline bool PerformCheckOnlyHasBeenSet() const { return m_performCheckOnlyHasBeenSet; }
76 inline void SetPerformCheckOnly(bool value) { m_performCheckOnlyHasBeenSet = true; m_performCheckOnly = value; }
77 inline UpgradeDomainRequest& WithPerformCheckOnly(bool value) { SetPerformCheckOnly(value); return *this;}
79
81
87 inline const Aws::Map<Aws::String, Aws::String>& GetAdvancedOptions() const{ return m_advancedOptions; }
88 inline bool AdvancedOptionsHasBeenSet() const { return m_advancedOptionsHasBeenSet; }
89 inline void SetAdvancedOptions(const Aws::Map<Aws::String, Aws::String>& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions = value; }
90 inline void SetAdvancedOptions(Aws::Map<Aws::String, Aws::String>&& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions = std::move(value); }
93 inline UpgradeDomainRequest& AddAdvancedOptions(const Aws::String& key, const Aws::String& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(key, value); return *this; }
94 inline UpgradeDomainRequest& AddAdvancedOptions(Aws::String&& key, const Aws::String& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(std::move(key), value); return *this; }
95 inline UpgradeDomainRequest& AddAdvancedOptions(const Aws::String& key, Aws::String&& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(key, std::move(value)); return *this; }
96 inline UpgradeDomainRequest& AddAdvancedOptions(Aws::String&& key, Aws::String&& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(std::move(key), std::move(value)); return *this; }
97 inline UpgradeDomainRequest& AddAdvancedOptions(const char* key, Aws::String&& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(key, std::move(value)); return *this; }
98 inline UpgradeDomainRequest& AddAdvancedOptions(Aws::String&& key, const char* value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(std::move(key), value); return *this; }
99 inline UpgradeDomainRequest& AddAdvancedOptions(const char* key, const char* value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(key, value); return *this; }
101 private:
102
103 Aws::String m_domainName;
104 bool m_domainNameHasBeenSet = false;
105
106 Aws::String m_targetVersion;
107 bool m_targetVersionHasBeenSet = false;
108
109 bool m_performCheckOnly;
110 bool m_performCheckOnlyHasBeenSet = false;
111
112 Aws::Map<Aws::String, Aws::String> m_advancedOptions;
113 bool m_advancedOptionsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace OpenSearchService
118} // namespace Aws
UpgradeDomainRequest & WithTargetVersion(const char *value)
UpgradeDomainRequest & AddAdvancedOptions(Aws::String &&key, const char *value)
UpgradeDomainRequest & AddAdvancedOptions(Aws::String &&key, const Aws::String &value)
UpgradeDomainRequest & WithDomainName(const char *value)
virtual const char * GetServiceRequestName() const override
UpgradeDomainRequest & WithAdvancedOptions(Aws::Map< Aws::String, Aws::String > &&value)
UpgradeDomainRequest & AddAdvancedOptions(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdvancedOptions() const
UpgradeDomainRequest & WithPerformCheckOnly(bool value)
void SetAdvancedOptions(Aws::Map< Aws::String, Aws::String > &&value)
UpgradeDomainRequest & AddAdvancedOptions(const Aws::String &key, Aws::String &&value)
UpgradeDomainRequest & AddAdvancedOptions(const Aws::String &key, const Aws::String &value)
UpgradeDomainRequest & WithTargetVersion(Aws::String &&value)
UpgradeDomainRequest & WithDomainName(Aws::String &&value)
UpgradeDomainRequest & WithDomainName(const Aws::String &value)
UpgradeDomainRequest & WithTargetVersion(const Aws::String &value)
UpgradeDomainRequest & AddAdvancedOptions(Aws::String &&key, Aws::String &&value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
void SetAdvancedOptions(const Aws::Map< Aws::String, Aws::String > &value)
UpgradeDomainRequest & AddAdvancedOptions(const char *key, const char *value)
UpgradeDomainRequest & WithAdvancedOptions(const Aws::Map< Aws::String, Aws::String > &value)
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