AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
CreateResourceSetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/route53-recovery-readiness/Route53RecoveryReadinessRequest.h>
11#include <aws/route53-recovery-readiness/Route53RecoveryReadiness_EXPORTS.h>
12#include <aws/route53-recovery-readiness/model/Resource.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Route53RecoveryReadiness {
18namespace Model {
19
23 public:
24 AWS_ROUTE53RECOVERYREADINESS_API CreateResourceSetRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateResourceSet"; }
31
32 AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetResourceSetName() const { return m_resourceSetName; }
39 inline bool ResourceSetNameHasBeenSet() const { return m_resourceSetNameHasBeenSet; }
40 template <typename ResourceSetNameT = Aws::String>
41 void SetResourceSetName(ResourceSetNameT&& value) {
42 m_resourceSetNameHasBeenSet = true;
43 m_resourceSetName = std::forward<ResourceSetNameT>(value);
44 }
45 template <typename ResourceSetNameT = Aws::String>
46 CreateResourceSetRequest& WithResourceSetName(ResourceSetNameT&& value) {
47 SetResourceSetName(std::forward<ResourceSetNameT>(value));
48 return *this;
49 }
51
53
65 inline const Aws::String& GetResourceSetType() const { return m_resourceSetType; }
66 inline bool ResourceSetTypeHasBeenSet() const { return m_resourceSetTypeHasBeenSet; }
67 template <typename ResourceSetTypeT = Aws::String>
68 void SetResourceSetType(ResourceSetTypeT&& value) {
69 m_resourceSetTypeHasBeenSet = true;
70 m_resourceSetType = std::forward<ResourceSetTypeT>(value);
71 }
72 template <typename ResourceSetTypeT = Aws::String>
73 CreateResourceSetRequest& WithResourceSetType(ResourceSetTypeT&& value) {
74 SetResourceSetType(std::forward<ResourceSetTypeT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::Vector<Resource>& GetResources() const { return m_resources; }
84 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
85 template <typename ResourcesT = Aws::Vector<Resource>>
86 void SetResources(ResourcesT&& value) {
87 m_resourcesHasBeenSet = true;
88 m_resources = std::forward<ResourcesT>(value);
89 }
90 template <typename ResourcesT = Aws::Vector<Resource>>
92 SetResources(std::forward<ResourcesT>(value));
93 return *this;
94 }
95 template <typename ResourcesT = Resource>
97 m_resourcesHasBeenSet = true;
98 m_resources.emplace_back(std::forward<ResourcesT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 void SetTags(TagsT&& value) {
111 m_tagsHasBeenSet = true;
112 m_tags = std::forward<TagsT>(value);
113 }
114 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
116 SetTags(std::forward<TagsT>(value));
117 return *this;
118 }
119 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
120 CreateResourceSetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
121 m_tagsHasBeenSet = true;
122 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_resourceSetName;
128
129 Aws::String m_resourceSetType;
130
131 Aws::Vector<Resource> m_resources;
132
134 bool m_resourceSetNameHasBeenSet = false;
135 bool m_resourceSetTypeHasBeenSet = false;
136 bool m_resourcesHasBeenSet = false;
137 bool m_tagsHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace Route53RecoveryReadiness
142} // namespace Aws
CreateResourceSetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateResourceSetRequest & WithResourceSetName(ResourceSetNameT &&value)
CreateResourceSetRequest & AddResources(ResourcesT &&value)
CreateResourceSetRequest & WithResources(ResourcesT &&value)
AWS_ROUTE53RECOVERYREADINESS_API CreateResourceSetRequest()=default
AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateResourceSetRequest & WithResourceSetType(ResourceSetTypeT &&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