AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CreateExtensionAssociationRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfigRequest.h>
8#include <aws/appconfig/AppConfig_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AppConfig {
16namespace Model {
17
21 public:
22 AWS_APPCONFIG_API CreateExtensionAssociationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateExtensionAssociation"; }
29
30 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetExtensionIdentifier() const { return m_extensionIdentifier; }
37 inline bool ExtensionIdentifierHasBeenSet() const { return m_extensionIdentifierHasBeenSet; }
38 template <typename ExtensionIdentifierT = Aws::String>
39 void SetExtensionIdentifier(ExtensionIdentifierT&& value) {
40 m_extensionIdentifierHasBeenSet = true;
41 m_extensionIdentifier = std::forward<ExtensionIdentifierT>(value);
42 }
43 template <typename ExtensionIdentifierT = Aws::String>
45 SetExtensionIdentifier(std::forward<ExtensionIdentifierT>(value));
46 return *this;
47 }
49
51
55 inline int GetExtensionVersionNumber() const { return m_extensionVersionNumber; }
56 inline bool ExtensionVersionNumberHasBeenSet() const { return m_extensionVersionNumberHasBeenSet; }
57 inline void SetExtensionVersionNumber(int value) {
58 m_extensionVersionNumberHasBeenSet = true;
59 m_extensionVersionNumber = value;
60 }
63 return *this;
64 }
66
68
71 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
72 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
73 template <typename ResourceIdentifierT = Aws::String>
74 void SetResourceIdentifier(ResourceIdentifierT&& value) {
75 m_resourceIdentifierHasBeenSet = true;
76 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
77 }
78 template <typename ResourceIdentifierT = Aws::String>
80 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
91 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
92 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
93 void SetParameters(ParametersT&& value) {
94 m_parametersHasBeenSet = true;
95 m_parameters = std::forward<ParametersT>(value);
96 }
97 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
99 SetParameters(std::forward<ParametersT>(value));
100 return *this;
101 }
102 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
103 CreateExtensionAssociationRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
104 m_parametersHasBeenSet = true;
105 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
106 return *this;
107 }
109
111
117 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
120 void SetTags(TagsT&& value) {
121 m_tagsHasBeenSet = true;
122 m_tags = std::forward<TagsT>(value);
123 }
124 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
126 SetTags(std::forward<TagsT>(value));
127 return *this;
128 }
129 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
130 CreateExtensionAssociationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
131 m_tagsHasBeenSet = true;
132 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_extensionIdentifier;
138
139 int m_extensionVersionNumber{0};
140
141 Aws::String m_resourceIdentifier;
142
144
146 bool m_extensionIdentifierHasBeenSet = false;
147 bool m_extensionVersionNumberHasBeenSet = false;
148 bool m_resourceIdentifierHasBeenSet = false;
149 bool m_parametersHasBeenSet = false;
150 bool m_tagsHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace AppConfig
155} // namespace Aws
CreateExtensionAssociationRequest & WithExtensionVersionNumber(int value)
CreateExtensionAssociationRequest & WithParameters(ParametersT &&value)
CreateExtensionAssociationRequest & WithResourceIdentifier(ResourceIdentifierT &&value)
CreateExtensionAssociationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_APPCONFIG_API CreateExtensionAssociationRequest()=default
AWS_APPCONFIG_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
CreateExtensionAssociationRequest & WithExtensionIdentifier(ExtensionIdentifierT &&value)
CreateExtensionAssociationRequest & WithTags(TagsT &&value)
CreateExtensionAssociationRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&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