AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateExtensionRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfigRequest.h>
8#include <aws/appconfig/AppConfig_EXPORTS.h>
9#include <aws/appconfig/model/Action.h>
10#include <aws/appconfig/model/ActionPoint.h>
11#include <aws/appconfig/model/Parameter.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace AppConfig {
20namespace Model {
21
25 public:
26 AWS_APPCONFIG_API UpdateExtensionRequest() = 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 "UpdateExtension"; }
33
34 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetExtensionIdentifier() const { return m_extensionIdentifier; }
41 inline bool ExtensionIdentifierHasBeenSet() const { return m_extensionIdentifierHasBeenSet; }
42 template <typename ExtensionIdentifierT = Aws::String>
43 void SetExtensionIdentifier(ExtensionIdentifierT&& value) {
44 m_extensionIdentifierHasBeenSet = true;
45 m_extensionIdentifier = std::forward<ExtensionIdentifierT>(value);
46 }
47 template <typename ExtensionIdentifierT = Aws::String>
48 UpdateExtensionRequest& WithExtensionIdentifier(ExtensionIdentifierT&& value) {
49 SetExtensionIdentifier(std::forward<ExtensionIdentifierT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 UpdateExtensionRequest& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Map<ActionPoint, Aws::Vector<Action>>& GetActions() const { return m_actions; }
77 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
78 template <typename ActionsT = Aws::Map<ActionPoint, Aws::Vector<Action>>>
79 void SetActions(ActionsT&& value) {
80 m_actionsHasBeenSet = true;
81 m_actions = std::forward<ActionsT>(value);
82 }
83 template <typename ActionsT = Aws::Map<ActionPoint, Aws::Vector<Action>>>
85 SetActions(std::forward<ActionsT>(value));
86 return *this;
87 }
89 m_actionsHasBeenSet = true;
90 m_actions.emplace(key, value);
91 return *this;
92 }
94
96
99 inline const Aws::Map<Aws::String, Parameter>& GetParameters() const { return m_parameters; }
100 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
101 template <typename ParametersT = Aws::Map<Aws::String, Parameter>>
102 void SetParameters(ParametersT&& value) {
103 m_parametersHasBeenSet = true;
104 m_parameters = std::forward<ParametersT>(value);
105 }
106 template <typename ParametersT = Aws::Map<Aws::String, Parameter>>
108 SetParameters(std::forward<ParametersT>(value));
109 return *this;
110 }
111 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Parameter>
112 UpdateExtensionRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
113 m_parametersHasBeenSet = true;
114 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
115 return *this;
116 }
118
120
123 inline int GetVersionNumber() const { return m_versionNumber; }
124 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
125 inline void SetVersionNumber(int value) {
126 m_versionNumberHasBeenSet = true;
127 m_versionNumber = value;
128 }
130 SetVersionNumber(value);
131 return *this;
132 }
134 private:
135 Aws::String m_extensionIdentifier;
136
137 Aws::String m_description;
138
140
142
143 int m_versionNumber{0};
144 bool m_extensionIdentifierHasBeenSet = false;
145 bool m_descriptionHasBeenSet = false;
146 bool m_actionsHasBeenSet = false;
147 bool m_parametersHasBeenSet = false;
148 bool m_versionNumberHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace AppConfig
153} // namespace Aws
AWS_APPCONFIG_API UpdateExtensionRequest()=default
UpdateExtensionRequest & WithActions(ActionsT &&value)
UpdateExtensionRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
UpdateExtensionRequest & WithParameters(ParametersT &&value)
AWS_APPCONFIG_API Aws::String SerializePayload() const override
const Aws::Map< ActionPoint, Aws::Vector< Action > > & GetActions() const
const Aws::Map< Aws::String, Parameter > & GetParameters() const
virtual const char * GetServiceRequestName() const override
UpdateExtensionRequest & AddActions(ActionPoint key, Aws::Vector< Action > value)
UpdateExtensionRequest & WithVersionNumber(int value)
UpdateExtensionRequest & WithExtensionIdentifier(ExtensionIdentifierT &&value)
void SetExtensionIdentifier(ExtensionIdentifierT &&value)
UpdateExtensionRequest & WithDescription(DescriptionT &&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
std::vector< T, Aws::Allocator< T > > Vector