AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateExtensionAssociationRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/AppConfigRequest.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 AppConfig
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_APPCONFIG_API CreateExtensionAssociationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateExtensionAssociation"; }
32
33 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
34
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) { m_extensionIdentifierHasBeenSet = true; m_extensionIdentifier = std::forward<ExtensionIdentifierT>(value); }
44 template<typename ExtensionIdentifierT = Aws::String>
45 CreateExtensionAssociationRequest& WithExtensionIdentifier(ExtensionIdentifierT&& value) { SetExtensionIdentifier(std::forward<ExtensionIdentifierT>(value)); return *this;}
47
49
53 inline int GetExtensionVersionNumber() const { return m_extensionVersionNumber; }
54 inline bool ExtensionVersionNumberHasBeenSet() const { return m_extensionVersionNumberHasBeenSet; }
55 inline void SetExtensionVersionNumber(int value) { m_extensionVersionNumberHasBeenSet = true; m_extensionVersionNumber = value; }
58
60
63 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
64 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
65 template<typename ResourceIdentifierT = Aws::String>
66 void SetResourceIdentifier(ResourceIdentifierT&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::forward<ResourceIdentifierT>(value); }
67 template<typename ResourceIdentifierT = Aws::String>
68 CreateExtensionAssociationRequest& WithResourceIdentifier(ResourceIdentifierT&& value) { SetResourceIdentifier(std::forward<ResourceIdentifierT>(value)); return *this;}
70
72
76 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
77 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
78 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
79 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
80 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
81 CreateExtensionAssociationRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
82 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
83 CreateExtensionAssociationRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
84 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
85 }
87
89
95 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
99 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
100 CreateExtensionAssociationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
101 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
102 CreateExtensionAssociationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
103 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
104 }
106 private:
107
108 Aws::String m_extensionIdentifier;
109 bool m_extensionIdentifierHasBeenSet = false;
110
111 int m_extensionVersionNumber{0};
112 bool m_extensionVersionNumberHasBeenSet = false;
113
114 Aws::String m_resourceIdentifier;
115 bool m_resourceIdentifierHasBeenSet = false;
116
118 bool m_parametersHasBeenSet = false;
119
121 bool m_tagsHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace AppConfig
126} // 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