AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceSetOutput.h
1
6#pragma once
7#include <aws/route53-recovery-readiness/Route53RecoveryReadiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/route53-recovery-readiness/model/Resource.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Route53RecoveryReadiness
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_ROUTE53RECOVERYREADINESS_API ResourceSetOutput() = default;
38 AWS_ROUTE53RECOVERYREADINESS_API ResourceSetOutput(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROUTE53RECOVERYREADINESS_API ResourceSetOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetResourceSetArn() const { return m_resourceSetArn; }
48 inline bool ResourceSetArnHasBeenSet() const { return m_resourceSetArnHasBeenSet; }
49 template<typename ResourceSetArnT = Aws::String>
50 void SetResourceSetArn(ResourceSetArnT&& value) { m_resourceSetArnHasBeenSet = true; m_resourceSetArn = std::forward<ResourceSetArnT>(value); }
51 template<typename ResourceSetArnT = Aws::String>
52 ResourceSetOutput& WithResourceSetArn(ResourceSetArnT&& value) { SetResourceSetArn(std::forward<ResourceSetArnT>(value)); return *this;}
54
56
59 inline const Aws::String& GetResourceSetName() const { return m_resourceSetName; }
60 inline bool ResourceSetNameHasBeenSet() const { return m_resourceSetNameHasBeenSet; }
61 template<typename ResourceSetNameT = Aws::String>
62 void SetResourceSetName(ResourceSetNameT&& value) { m_resourceSetNameHasBeenSet = true; m_resourceSetName = std::forward<ResourceSetNameT>(value); }
63 template<typename ResourceSetNameT = Aws::String>
64 ResourceSetOutput& WithResourceSetName(ResourceSetNameT&& value) { SetResourceSetName(std::forward<ResourceSetNameT>(value)); return *this;}
66
68
80 inline const Aws::String& GetResourceSetType() const { return m_resourceSetType; }
81 inline bool ResourceSetTypeHasBeenSet() const { return m_resourceSetTypeHasBeenSet; }
82 template<typename ResourceSetTypeT = Aws::String>
83 void SetResourceSetType(ResourceSetTypeT&& value) { m_resourceSetTypeHasBeenSet = true; m_resourceSetType = std::forward<ResourceSetTypeT>(value); }
84 template<typename ResourceSetTypeT = Aws::String>
85 ResourceSetOutput& WithResourceSetType(ResourceSetTypeT&& value) { SetResourceSetType(std::forward<ResourceSetTypeT>(value)); return *this;}
87
89
92 inline const Aws::Vector<Resource>& GetResources() const { return m_resources; }
93 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
94 template<typename ResourcesT = Aws::Vector<Resource>>
95 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
96 template<typename ResourcesT = Aws::Vector<Resource>>
97 ResourceSetOutput& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
98 template<typename ResourcesT = Resource>
99 ResourceSetOutput& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
101
103
104 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
105 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
106 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
107 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
108 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
109 ResourceSetOutput& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
110 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
111 ResourceSetOutput& AddTags(TagsKeyT&& key, TagsValueT&& value) {
112 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
113 }
115 private:
116
117 Aws::String m_resourceSetArn;
118 bool m_resourceSetArnHasBeenSet = false;
119
120 Aws::String m_resourceSetName;
121 bool m_resourceSetNameHasBeenSet = false;
122
123 Aws::String m_resourceSetType;
124 bool m_resourceSetTypeHasBeenSet = false;
125
126 Aws::Vector<Resource> m_resources;
127 bool m_resourcesHasBeenSet = false;
128
130 bool m_tagsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Route53RecoveryReadiness
135} // namespace Aws
const Aws::Vector< Resource > & GetResources() const
ResourceSetOutput & WithResourceSetArn(ResourceSetArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ResourceSetOutput & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceSetOutput & WithResourceSetName(ResourceSetNameT &&value)
ResourceSetOutput & WithResourceSetType(ResourceSetTypeT &&value)
AWS_ROUTE53RECOVERYREADINESS_API ResourceSetOutput(Aws::Utils::Json::JsonView jsonValue)
ResourceSetOutput & WithResources(ResourcesT &&value)
AWS_ROUTE53RECOVERYREADINESS_API ResourceSetOutput()=default
AWS_ROUTE53RECOVERYREADINESS_API ResourceSetOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceSetOutput & AddResources(ResourcesT &&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
Aws::Utils::Json::JsonValue JsonValue