AWS SDK for C++  0.12.9
AWS SDK for C++
ClusterStatus.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace EMR
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  ClusterStatus();
43  ClusterStatus& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const ClusterState& GetState() const{ return m_state; }
50 
54  inline void SetState(const ClusterState& value) { m_stateHasBeenSet = true; m_state = value; }
55 
59  inline void SetState(ClusterState&& value) { m_stateHasBeenSet = true; m_state = value; }
60 
64  inline ClusterStatus& WithState(const ClusterState& value) { SetState(value); return *this;}
65 
69  inline ClusterStatus& WithState(ClusterState&& value) { SetState(value); return *this;}
70 
74  inline const ClusterStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; }
75 
79  inline void SetStateChangeReason(const ClusterStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
80 
84  inline void SetStateChangeReason(ClusterStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
85 
89  inline ClusterStatus& WithStateChangeReason(const ClusterStateChangeReason& value) { SetStateChangeReason(value); return *this;}
90 
94  inline ClusterStatus& WithStateChangeReason(ClusterStateChangeReason&& value) { SetStateChangeReason(value); return *this;}
95 
100  inline const ClusterTimeline& GetTimeline() const{ return m_timeline; }
101 
106  inline void SetTimeline(const ClusterTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; }
107 
112  inline void SetTimeline(ClusterTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = value; }
113 
118  inline ClusterStatus& WithTimeline(const ClusterTimeline& value) { SetTimeline(value); return *this;}
119 
124  inline ClusterStatus& WithTimeline(ClusterTimeline&& value) { SetTimeline(value); return *this;}
125 
126  private:
127  ClusterState m_state;
128  bool m_stateHasBeenSet;
129  ClusterStateChangeReason m_stateChangeReason;
130  bool m_stateChangeReasonHasBeenSet;
131  ClusterTimeline m_timeline;
132  bool m_timelineHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace EMR
137 } // namespace Aws
const ClusterTimeline & GetTimeline() const
void SetStateChangeReason(const ClusterStateChangeReason &value)
Definition: ClusterStatus.h:79
void SetTimeline(const ClusterTimeline &value)
const ClusterStateChangeReason & GetStateChangeReason() const
Definition: ClusterStatus.h:74
void SetStateChangeReason(ClusterStateChangeReason &&value)
Definition: ClusterStatus.h:84
void SetState(const ClusterState &value)
Definition: ClusterStatus.h:54
void SetState(ClusterState &&value)
Definition: ClusterStatus.h:59
ClusterStatus & WithState(const ClusterState &value)
Definition: ClusterStatus.h:64
ClusterStatus & WithTimeline(ClusterTimeline &&value)
ClusterStatus & WithStateChangeReason(ClusterStateChangeReason &&value)
Definition: ClusterStatus.h:94
void SetTimeline(ClusterTimeline &&value)
ClusterStatus & WithState(ClusterState &&value)
Definition: ClusterStatus.h:69
const ClusterState & GetState() const
Definition: ClusterStatus.h:49
ClusterStatus & WithTimeline(const ClusterTimeline &value)
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:34
ClusterStatus & WithStateChangeReason(const ClusterStateChangeReason &value)
Definition: ClusterStatus.h:89
JSON (JavaScript Object Notation).