AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
ResourceConfiguration.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/datazone/DataZone_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataZone {
21namespace Model {
22
29 public:
30 AWS_DATAZONE_API ResourceConfiguration() = default;
33 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetIdentifier() const { return m_identifier; }
40 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
41 template <typename IdentifierT = Aws::String>
42 void SetIdentifier(IdentifierT&& value) {
43 m_identifierHasBeenSet = true;
44 m_identifier = std::forward<IdentifierT>(value);
45 }
46 template <typename IdentifierT = Aws::String>
47 ResourceConfiguration& WithIdentifier(IdentifierT&& value) {
48 SetIdentifier(std::forward<IdentifierT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
83 ResourceConfiguration& WithDescription(DescriptionT&& value) {
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetRegion() const { return m_region; }
94 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
95 template <typename RegionT = Aws::String>
96 void SetRegion(RegionT&& value) {
97 m_regionHasBeenSet = true;
98 m_region = std::forward<RegionT>(value);
99 }
100 template <typename RegionT = Aws::String>
102 SetRegion(std::forward<RegionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
112 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
113 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
114 void SetParameters(ParametersT&& value) {
115 m_parametersHasBeenSet = true;
116 m_parameters = std::forward<ParametersT>(value);
117 }
118 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
119 ResourceConfiguration& WithParameters(ParametersT&& value) {
120 SetParameters(std::forward<ParametersT>(value));
121 return *this;
122 }
123 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
124 ResourceConfiguration& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
125 m_parametersHasBeenSet = true;
126 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_identifier;
132
133 Aws::String m_name;
134
135 Aws::String m_description;
136
137 Aws::String m_region;
138
140 bool m_identifierHasBeenSet = false;
141 bool m_nameHasBeenSet = false;
142 bool m_descriptionHasBeenSet = false;
143 bool m_regionHasBeenSet = false;
144 bool m_parametersHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace DataZone
149} // namespace Aws
AWS_DATAZONE_API ResourceConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API ResourceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAZONE_API ResourceConfiguration()=default
ResourceConfiguration & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
ResourceConfiguration & WithParameters(ParametersT &&value)
ResourceConfiguration & WithRegion(RegionT &&value)
ResourceConfiguration & WithDescription(DescriptionT &&value)
ResourceConfiguration & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
ResourceConfiguration & WithIdentifier(IdentifierT &&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
Aws::Utils::Json::JsonValue JsonValue