AWS SDK for C++  1.9.104
AWS SDK for C++
WorkGroup.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Athena
25 {
26 namespace Model
27 {
28 
45  {
46  public:
51 
52 
56  inline const Aws::String& GetName() const{ return m_name; }
57 
61  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 
66  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 
71  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
72 
76  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77 
81  inline WorkGroup& WithName(const Aws::String& value) { SetName(value); return *this;}
82 
86  inline WorkGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
87 
91  inline WorkGroup& WithName(const char* value) { SetName(value); return *this;}
92 
93 
97  inline const WorkGroupState& GetState() const{ return m_state; }
98 
102  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
103 
107  inline void SetState(const WorkGroupState& value) { m_stateHasBeenSet = true; m_state = value; }
108 
112  inline void SetState(WorkGroupState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
113 
117  inline WorkGroup& WithState(const WorkGroupState& value) { SetState(value); return *this;}
118 
122  inline WorkGroup& WithState(WorkGroupState&& value) { SetState(std::move(value)); return *this;}
123 
124 
136  inline const WorkGroupConfiguration& GetConfiguration() const{ return m_configuration; }
137 
149  inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
150 
162  inline void SetConfiguration(const WorkGroupConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
163 
175  inline void SetConfiguration(WorkGroupConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
176 
188  inline WorkGroup& WithConfiguration(const WorkGroupConfiguration& value) { SetConfiguration(value); return *this;}
189 
201  inline WorkGroup& WithConfiguration(WorkGroupConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
202 
203 
207  inline const Aws::String& GetDescription() const{ return m_description; }
208 
212  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
213 
217  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
218 
222  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
223 
227  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
228 
232  inline WorkGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
233 
237  inline WorkGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
238 
242  inline WorkGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
243 
244 
248  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
249 
253  inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
254 
258  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
259 
263  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
264 
268  inline WorkGroup& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
269 
273  inline WorkGroup& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
274 
275  private:
276 
277  Aws::String m_name;
278  bool m_nameHasBeenSet;
279 
280  WorkGroupState m_state;
281  bool m_stateHasBeenSet;
282 
283  WorkGroupConfiguration m_configuration;
284  bool m_configurationHasBeenSet;
285 
286  Aws::String m_description;
287  bool m_descriptionHasBeenSet;
288 
289  Aws::Utils::DateTime m_creationTime;
290  bool m_creationTimeHasBeenSet;
291  };
292 
293 } // namespace Model
294 } // namespace Athena
295 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Athena::Model::WorkGroup::GetState
const WorkGroupState & GetState() const
Definition: WorkGroup.h:97
Aws::Athena::Model::WorkGroup::CreationTimeHasBeenSet
bool CreationTimeHasBeenSet() const
Definition: WorkGroup.h:253
Aws::Athena::Model::WorkGroup::SetDescription
void SetDescription(const char *value)
Definition: WorkGroup.h:227
Aws::Athena::Model::WorkGroup::NameHasBeenSet
bool NameHasBeenSet() const
Definition: WorkGroup.h:61
Aws::Athena::Model::WorkGroup::GetCreationTime
const Aws::Utils::DateTime & GetCreationTime() const
Definition: WorkGroup.h:248
Aws::Athena::Model::WorkGroup
Definition: WorkGroup.h:45
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::WorkGroup::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Athena::Model::WorkGroup::SetName
void SetName(const char *value)
Definition: WorkGroup.h:76
Aws::Athena::Model::WorkGroup::WithDescription
WorkGroup & WithDescription(Aws::String &&value)
Definition: WorkGroup.h:237
DateTime.h
Aws::Athena::Model::WorkGroup::GetDescription
const Aws::String & GetDescription() const
Definition: WorkGroup.h:207
Aws::Athena::Model::WorkGroup::SetState
void SetState(WorkGroupState &&value)
Definition: WorkGroup.h:112
Aws::Athena::Model::WorkGroup::GetConfiguration
const WorkGroupConfiguration & GetConfiguration() const
Definition: WorkGroup.h:136
Aws::Athena::Model::WorkGroup::WorkGroup
WorkGroup()
Aws::Athena::Model::WorkGroup::WithConfiguration
WorkGroup & WithConfiguration(WorkGroupConfiguration &&value)
Definition: WorkGroup.h:201
WorkGroupConfiguration.h
Aws::Athena::Model::WorkGroup::WithName
WorkGroup & WithName(const Aws::String &value)
Definition: WorkGroup.h:81
Aws::Athena::Model::WorkGroup::SetState
void SetState(const WorkGroupState &value)
Definition: WorkGroup.h:107
Aws::Athena::Model::WorkGroup::WorkGroup
WorkGroup(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::WorkGroup::SetName
void SetName(Aws::String &&value)
Definition: WorkGroup.h:71
Aws::Athena::Model::WorkGroup::WithDescription
WorkGroup & WithDescription(const char *value)
Definition: WorkGroup.h:242
Aws::Athena::Model::WorkGroup::WithState
WorkGroup & WithState(WorkGroupState &&value)
Definition: WorkGroup.h:122
Aws::Athena::Model::WorkGroup::operator=
WorkGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::WorkGroup::WithCreationTime
WorkGroup & WithCreationTime(Aws::Utils::DateTime &&value)
Definition: WorkGroup.h:273
WorkGroupState.h
Aws::Athena::Model::WorkGroup::SetName
void SetName(const Aws::String &value)
Definition: WorkGroup.h:66
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Athena_EXPORTS.h
Aws::Athena::Model::WorkGroup::SetCreationTime
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition: WorkGroup.h:258
Aws::Athena::Model::WorkGroup::ConfigurationHasBeenSet
bool ConfigurationHasBeenSet() const
Definition: WorkGroup.h:149
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Athena::Model::WorkGroup::WithName
WorkGroup & WithName(const char *value)
Definition: WorkGroup.h:91
Aws::Athena::Model::WorkGroup::StateHasBeenSet
bool StateHasBeenSet() const
Definition: WorkGroup.h:102
Aws::Athena::Model::WorkGroupState
WorkGroupState
Definition: WorkGroupState.h:17
Aws::Athena::Model::WorkGroup::SetDescription
void SetDescription(const Aws::String &value)
Definition: WorkGroup.h:217
Aws::Athena::Model::WorkGroup::WithCreationTime
WorkGroup & WithCreationTime(const Aws::Utils::DateTime &value)
Definition: WorkGroup.h:268
Aws::Athena::Model::WorkGroup::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: WorkGroup.h:212
Aws::Athena::Model::WorkGroup::SetConfiguration
void SetConfiguration(const WorkGroupConfiguration &value)
Definition: WorkGroup.h:162
Aws::Athena::Model::WorkGroup::WithState
WorkGroup & WithState(const WorkGroupState &value)
Definition: WorkGroup.h:117
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::WorkGroup::SetDescription
void SetDescription(Aws::String &&value)
Definition: WorkGroup.h:222
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::WorkGroup::SetCreationTime
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition: WorkGroup.h:263
Aws::Athena::Model::WorkGroup::WithName
WorkGroup & WithName(Aws::String &&value)
Definition: WorkGroup.h:86
Aws::Athena::Model::WorkGroup::WithDescription
WorkGroup & WithDescription(const Aws::String &value)
Definition: WorkGroup.h:232
Aws::Athena::Model::WorkGroup::WithConfiguration
WorkGroup & WithConfiguration(const WorkGroupConfiguration &value)
Definition: WorkGroup.h:188
Aws::Athena::Model::WorkGroupConfiguration
Definition: WorkGroupConfiguration.h:41
Aws::Athena::Model::WorkGroup::SetConfiguration
void SetConfiguration(WorkGroupConfiguration &&value)
Definition: WorkGroup.h:175
Aws::Athena::Model::WorkGroup::GetName
const Aws::String & GetName() const
Definition: WorkGroup.h:56