AWS SDK for C++  0.14.3
AWS SDK for C++
ClusterSummary.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace EMR
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  ClusterSummary& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetId() const{ return m_id; }
49 
53  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
54 
58  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
59 
63  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
64 
68  inline ClusterSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
69 
73  inline ClusterSummary& WithId(Aws::String&& value) { SetId(value); return *this;}
74 
78  inline ClusterSummary& WithId(const char* value) { SetId(value); return *this;}
79 
83  inline const Aws::String& GetName() const{ return m_name; }
84 
88  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
89 
93  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
94 
98  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
99 
103  inline ClusterSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
104 
108  inline ClusterSummary& WithName(Aws::String&& value) { SetName(value); return *this;}
109 
113  inline ClusterSummary& WithName(const char* value) { SetName(value); return *this;}
114 
118  inline const ClusterStatus& GetStatus() const{ return m_status; }
119 
123  inline void SetStatus(const ClusterStatus& value) { m_statusHasBeenSet = true; m_status = value; }
124 
128  inline void SetStatus(ClusterStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
129 
133  inline ClusterSummary& WithStatus(const ClusterStatus& value) { SetStatus(value); return *this;}
134 
138  inline ClusterSummary& WithStatus(ClusterStatus&& value) { SetStatus(value); return *this;}
139 
148  inline int GetNormalizedInstanceHours() const{ return m_normalizedInstanceHours; }
149 
158  inline void SetNormalizedInstanceHours(int value) { m_normalizedInstanceHoursHasBeenSet = true; m_normalizedInstanceHours = value; }
159 
168  inline ClusterSummary& WithNormalizedInstanceHours(int value) { SetNormalizedInstanceHours(value); return *this;}
169 
170  private:
171  Aws::String m_id;
172  bool m_idHasBeenSet;
173  Aws::String m_name;
174  bool m_nameHasBeenSet;
175  ClusterStatus m_status;
176  bool m_statusHasBeenSet;
177  int m_normalizedInstanceHours;
178  bool m_normalizedInstanceHoursHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace EMR
183 } // namespace Aws
ClusterSummary & WithName(const Aws::String &value)
ClusterSummary & WithId(const Aws::String &value)
void SetName(Aws::String &&value)
ClusterSummary & WithNormalizedInstanceHours(int value)
void SetStatus(ClusterStatus &&value)
void SetName(const Aws::String &value)
void SetStatus(const ClusterStatus &value)
void SetId(const Aws::String &value)
ClusterSummary & WithId(Aws::String &&value)
const ClusterStatus & GetStatus() const
ClusterSummary & WithName(const char *value)
void SetId(const char *value)
ClusterSummary & WithName(Aws::String &&value)
void SetId(Aws::String &&value)
ClusterSummary & WithId(const char *value)
void SetNormalizedInstanceHours(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ClusterSummary & WithStatus(ClusterStatus &&value)
const Aws::String & GetName() const
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:37
ClusterSummary & WithStatus(const ClusterStatus &value)
JSON (JavaScript Object Notation).
const Aws::String & GetId() const
void SetName(const char *value)