AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VirtualCluster.h
1
6#pragma once
7#include <aws/emr-containers/EMRContainers_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/emr-containers/model/VirtualClusterState.h>
10#include <aws/emr-containers/model/ContainerProvider.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace EMRContainers
26{
27namespace Model
28{
29
42 {
43 public:
44 AWS_EMRCONTAINERS_API VirtualCluster();
45 AWS_EMRCONTAINERS_API VirtualCluster(Aws::Utils::Json::JsonView jsonValue);
46 AWS_EMRCONTAINERS_API VirtualCluster& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetId() const{ return m_id; }
55 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
56 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
58 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
59 inline VirtualCluster& WithId(const Aws::String& value) { SetId(value); return *this;}
60 inline VirtualCluster& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
61 inline VirtualCluster& WithId(const char* value) { SetId(value); return *this;}
63
65
68 inline const Aws::String& GetName() const{ return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
71 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
72 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
73 inline VirtualCluster& WithName(const Aws::String& value) { SetName(value); return *this;}
74 inline VirtualCluster& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 inline VirtualCluster& WithName(const char* value) { SetName(value); return *this;}
77
79
82 inline const Aws::String& GetArn() const{ return m_arn; }
83 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
84 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
85 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
86 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
87 inline VirtualCluster& WithArn(const Aws::String& value) { SetArn(value); return *this;}
88 inline VirtualCluster& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
89 inline VirtualCluster& WithArn(const char* value) { SetArn(value); return *this;}
91
93
96 inline const VirtualClusterState& GetState() const{ return m_state; }
97 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
98 inline void SetState(const VirtualClusterState& value) { m_stateHasBeenSet = true; m_state = value; }
99 inline void SetState(VirtualClusterState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
100 inline VirtualCluster& WithState(const VirtualClusterState& value) { SetState(value); return *this;}
101 inline VirtualCluster& WithState(VirtualClusterState&& value) { SetState(std::move(value)); return *this;}
103
105
108 inline const ContainerProvider& GetContainerProvider() const{ return m_containerProvider; }
109 inline bool ContainerProviderHasBeenSet() const { return m_containerProviderHasBeenSet; }
110 inline void SetContainerProvider(const ContainerProvider& value) { m_containerProviderHasBeenSet = true; m_containerProvider = value; }
111 inline void SetContainerProvider(ContainerProvider&& value) { m_containerProviderHasBeenSet = true; m_containerProvider = std::move(value); }
112 inline VirtualCluster& WithContainerProvider(const ContainerProvider& value) { SetContainerProvider(value); return *this;}
113 inline VirtualCluster& WithContainerProvider(ContainerProvider&& value) { SetContainerProvider(std::move(value)); return *this;}
115
117
120 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
121 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
122 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
123 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
124 inline VirtualCluster& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
125 inline VirtualCluster& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
127
129
132 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
135 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
136 inline VirtualCluster& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
137 inline VirtualCluster& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
138 inline VirtualCluster& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
139 inline VirtualCluster& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
140 inline VirtualCluster& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
141 inline VirtualCluster& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
142 inline VirtualCluster& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
143 inline VirtualCluster& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
144 inline VirtualCluster& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
146
148
151 inline const Aws::String& GetSecurityConfigurationId() const{ return m_securityConfigurationId; }
152 inline bool SecurityConfigurationIdHasBeenSet() const { return m_securityConfigurationIdHasBeenSet; }
153 inline void SetSecurityConfigurationId(const Aws::String& value) { m_securityConfigurationIdHasBeenSet = true; m_securityConfigurationId = value; }
154 inline void SetSecurityConfigurationId(Aws::String&& value) { m_securityConfigurationIdHasBeenSet = true; m_securityConfigurationId = std::move(value); }
155 inline void SetSecurityConfigurationId(const char* value) { m_securityConfigurationIdHasBeenSet = true; m_securityConfigurationId.assign(value); }
157 inline VirtualCluster& WithSecurityConfigurationId(Aws::String&& value) { SetSecurityConfigurationId(std::move(value)); return *this;}
158 inline VirtualCluster& WithSecurityConfigurationId(const char* value) { SetSecurityConfigurationId(value); return *this;}
160 private:
161
162 Aws::String m_id;
163 bool m_idHasBeenSet = false;
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
168 Aws::String m_arn;
169 bool m_arnHasBeenSet = false;
170
171 VirtualClusterState m_state;
172 bool m_stateHasBeenSet = false;
173
174 ContainerProvider m_containerProvider;
175 bool m_containerProviderHasBeenSet = false;
176
177 Aws::Utils::DateTime m_createdAt;
178 bool m_createdAtHasBeenSet = false;
179
181 bool m_tagsHasBeenSet = false;
182
183 Aws::String m_securityConfigurationId;
184 bool m_securityConfigurationIdHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace EMRContainers
189} // namespace Aws
VirtualCluster & WithCreatedAt(Aws::Utils::DateTime &&value)
VirtualCluster & AddTags(Aws::String &&key, Aws::String &&value)
VirtualCluster & WithSecurityConfigurationId(const Aws::String &value)
const ContainerProvider & GetContainerProvider() const
AWS_EMRCONTAINERS_API VirtualCluster()
void SetContainerProvider(const ContainerProvider &value)
AWS_EMRCONTAINERS_API VirtualCluster & operator=(Aws::Utils::Json::JsonView jsonValue)
VirtualCluster & WithName(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
VirtualCluster & AddTags(Aws::String &&key, const Aws::String &value)
VirtualCluster & WithName(const char *value)
VirtualCluster & WithId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetSecurityConfigurationId() const
void SetId(const Aws::String &value)
VirtualCluster & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
VirtualCluster & AddTags(const Aws::String &key, const Aws::String &value)
VirtualCluster & WithId(Aws::String &&value)
void SetName(const Aws::String &value)
VirtualCluster & WithName(const Aws::String &value)
VirtualCluster & WithContainerProvider(ContainerProvider &&value)
VirtualCluster & WithArn(const Aws::String &value)
VirtualCluster & AddTags(const char *key, Aws::String &&value)
VirtualCluster & WithState(const VirtualClusterState &value)
AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContainerProvider(ContainerProvider &&value)
VirtualCluster & WithId(const char *value)
VirtualCluster & WithCreatedAt(const Aws::Utils::DateTime &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
VirtualCluster & WithSecurityConfigurationId(const char *value)
void SetSecurityConfigurationId(const Aws::String &value)
void SetSecurityConfigurationId(Aws::String &&value)
AWS_EMRCONTAINERS_API VirtualCluster(Aws::Utils::Json::JsonView jsonValue)
VirtualCluster & WithState(VirtualClusterState &&value)
VirtualCluster & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
VirtualCluster & WithArn(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetArn(const Aws::String &value)
VirtualCluster & AddTags(const Aws::String &key, Aws::String &&value)
void SetState(VirtualClusterState &&value)
VirtualCluster & WithContainerProvider(const ContainerProvider &value)
VirtualCluster & AddTags(const char *key, const char *value)
void SetState(const VirtualClusterState &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
VirtualCluster & WithArn(const char *value)
const Aws::String & GetName() const
void SetSecurityConfigurationId(const char *value)
const VirtualClusterState & GetState() const
VirtualCluster & AddTags(Aws::String &&key, const char *value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
VirtualCluster & WithSecurityConfigurationId(Aws::String &&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