AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceSetName(const Aws::String& value) { m_resourceSetNameHasBeenSet = true; m_resourceSetName = value; }
45 inline void SetResourceSetName(Aws::String&& value) { m_resourceSetNameHasBeenSet = true; m_resourceSetName = std::move(value); }
46 inline void SetResourceSetName(const char* value) { m_resourceSetNameHasBeenSet = true; m_resourceSetName.assign(value); }
47 inline CreateResourceSetRequest& WithResourceSetName(const Aws::String& value) { SetResourceSetName(value); return *this;}
48 inline CreateResourceSetRequest& WithResourceSetName(Aws::String&& value) { SetResourceSetName(std::move(value)); return *this;}
49 inline CreateResourceSetRequest& WithResourceSetName(const char* value) { SetResourceSetName(value); return *this;}
51
53
65 inline const Aws::String& GetResourceSetType() const{ return m_resourceSetType; }
66 inline bool ResourceSetTypeHasBeenSet() const { return m_resourceSetTypeHasBeenSet; }
67 inline void SetResourceSetType(const Aws::String& value) { m_resourceSetTypeHasBeenSet = true; m_resourceSetType = value; }
68 inline void SetResourceSetType(Aws::String&& value) { m_resourceSetTypeHasBeenSet = true; m_resourceSetType = std::move(value); }
69 inline void SetResourceSetType(const char* value) { m_resourceSetTypeHasBeenSet = true; m_resourceSetType.assign(value); }
70 inline CreateResourceSetRequest& WithResourceSetType(const Aws::String& value) { SetResourceSetType(value); return *this;}
71 inline CreateResourceSetRequest& WithResourceSetType(Aws::String&& value) { SetResourceSetType(std::move(value)); return *this;}
72 inline CreateResourceSetRequest& WithResourceSetType(const char* value) { SetResourceSetType(value); return *this;}
74
76
79 inline const Aws::Vector<Resource>& GetResources() const{ return m_resources; }
80 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
81 inline void SetResources(const Aws::Vector<Resource>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
82 inline void SetResources(Aws::Vector<Resource>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
83 inline CreateResourceSetRequest& WithResources(const Aws::Vector<Resource>& value) { SetResources(value); return *this;}
84 inline CreateResourceSetRequest& WithResources(Aws::Vector<Resource>&& value) { SetResources(std::move(value)); return *this;}
85 inline CreateResourceSetRequest& AddResources(const Resource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
86 inline CreateResourceSetRequest& AddResources(Resource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
96 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
97 inline CreateResourceSetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
98 inline CreateResourceSetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
99 inline CreateResourceSetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
100 inline CreateResourceSetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
101 inline CreateResourceSetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
102 inline CreateResourceSetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
103 inline CreateResourceSetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
104 inline CreateResourceSetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
105 inline CreateResourceSetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
107 private:
108
109 Aws::String m_resourceSetName;
110 bool m_resourceSetNameHasBeenSet = false;
111
112 Aws::String m_resourceSetType;
113 bool m_resourceSetTypeHasBeenSet = false;
114
115 Aws::Vector<Resource> m_resources;
116 bool m_resourcesHasBeenSet = false;
117
119 bool m_tagsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Route53RecoveryReadiness
124} // namespace Aws
CreateResourceSetRequest & WithResourceSetName(Aws::String &&value)
CreateResourceSetRequest & WithResourceSetName(const char *value)
CreateResourceSetRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateResourceSetRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateResourceSetRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateResourceSetRequest & WithResourceSetType(Aws::String &&value)
CreateResourceSetRequest & AddTags(const char *key, const char *value)
AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override
CreateResourceSetRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateResourceSetRequest & WithResources(Aws::Vector< Resource > &&value)
CreateResourceSetRequest & WithResourceSetType(const char *value)
CreateResourceSetRequest & WithResourceSetType(const Aws::String &value)
CreateResourceSetRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateResourceSetRequest & AddResources(const Resource &value)
CreateResourceSetRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateResourceSetRequest & AddTags(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateResourceSetRequest & WithResourceSetName(const Aws::String &value)
AWS_ROUTE53RECOVERYREADINESS_API CreateResourceSetRequest()
CreateResourceSetRequest & WithResources(const Aws::Vector< Resource > &value)
CreateResourceSetRequest & AddTags(Aws::String &&key, const char *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