AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateResourceSetRequest.h
1
6#pragma once
7#include <aws/route53-recovery-readiness/Route53RecoveryReadiness_EXPORTS.h>
8#include <aws/route53-recovery-readiness/Route53RecoveryReadinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/route53-recovery-readiness/model/Resource.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Route53RecoveryReadiness
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ROUTE53RECOVERYREADINESS_API CreateResourceSetRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateResourceSet"; }
34
35 AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetResourceSetName() const { return m_resourceSetName; }
43 inline bool ResourceSetNameHasBeenSet() const { return m_resourceSetNameHasBeenSet; }
44 template<typename ResourceSetNameT = Aws::String>
45 void SetResourceSetName(ResourceSetNameT&& value) { m_resourceSetNameHasBeenSet = true; m_resourceSetName = std::forward<ResourceSetNameT>(value); }
46 template<typename ResourceSetNameT = Aws::String>
47 CreateResourceSetRequest& WithResourceSetName(ResourceSetNameT&& value) { SetResourceSetName(std::forward<ResourceSetNameT>(value)); return *this;}
49
51
63 inline const Aws::String& GetResourceSetType() const { return m_resourceSetType; }
64 inline bool ResourceSetTypeHasBeenSet() const { return m_resourceSetTypeHasBeenSet; }
65 template<typename ResourceSetTypeT = Aws::String>
66 void SetResourceSetType(ResourceSetTypeT&& value) { m_resourceSetTypeHasBeenSet = true; m_resourceSetType = std::forward<ResourceSetTypeT>(value); }
67 template<typename ResourceSetTypeT = Aws::String>
68 CreateResourceSetRequest& WithResourceSetType(ResourceSetTypeT&& value) { SetResourceSetType(std::forward<ResourceSetTypeT>(value)); return *this;}
70
72
75 inline const Aws::Vector<Resource>& GetResources() const { return m_resources; }
76 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
77 template<typename ResourcesT = Aws::Vector<Resource>>
78 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
79 template<typename ResourcesT = Aws::Vector<Resource>>
80 CreateResourceSetRequest& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
81 template<typename ResourcesT = Resource>
82 CreateResourceSetRequest& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
84
86
89 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
92 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
93 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
94 CreateResourceSetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
95 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
96 CreateResourceSetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
97 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
98 }
100 private:
101
102 Aws::String m_resourceSetName;
103 bool m_resourceSetNameHasBeenSet = false;
104
105 Aws::String m_resourceSetType;
106 bool m_resourceSetTypeHasBeenSet = false;
107
108 Aws::Vector<Resource> m_resources;
109 bool m_resourcesHasBeenSet = false;
110
112 bool m_tagsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Route53RecoveryReadiness
117} // 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