AWS SDK for C++  0.12.9
AWS SDK for C++
InstanceGroupStatus.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:
43  InstanceGroupStatus& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const InstanceGroupState& GetState() const{ return m_state; }
50 
54  inline void SetState(const InstanceGroupState& value) { m_stateHasBeenSet = true; m_state = value; }
55 
59  inline void SetState(InstanceGroupState&& value) { m_stateHasBeenSet = true; m_state = value; }
60 
64  inline InstanceGroupStatus& WithState(const InstanceGroupState& value) { SetState(value); return *this;}
65 
69  inline InstanceGroupStatus& WithState(InstanceGroupState&& value) { SetState(value); return *this;}
70 
74  inline const InstanceGroupStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; }
75 
79  inline void SetStateChangeReason(const InstanceGroupStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
80 
84  inline void SetStateChangeReason(InstanceGroupStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
85 
89  inline InstanceGroupStatus& WithStateChangeReason(const InstanceGroupStateChangeReason& value) { SetStateChangeReason(value); return *this;}
90 
94  inline InstanceGroupStatus& WithStateChangeReason(InstanceGroupStateChangeReason&& value) { SetStateChangeReason(value); return *this;}
95 
99  inline const InstanceGroupTimeline& GetTimeline() const{ return m_timeline; }
100 
104  inline void SetTimeline(const InstanceGroupTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; }
105 
109  inline void SetTimeline(InstanceGroupTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = value; }
110 
114  inline InstanceGroupStatus& WithTimeline(const InstanceGroupTimeline& value) { SetTimeline(value); return *this;}
115 
119  inline InstanceGroupStatus& WithTimeline(InstanceGroupTimeline&& value) { SetTimeline(value); return *this;}
120 
121  private:
122  InstanceGroupState m_state;
123  bool m_stateHasBeenSet;
124  InstanceGroupStateChangeReason m_stateChangeReason;
125  bool m_stateChangeReasonHasBeenSet;
126  InstanceGroupTimeline m_timeline;
127  bool m_timelineHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace EMR
132 } // namespace Aws
InstanceGroupStatus & WithTimeline(InstanceGroupTimeline &&value)
InstanceGroupStatus & WithStateChangeReason(const InstanceGroupStateChangeReason &value)
const InstanceGroupTimeline & GetTimeline() const
const InstanceGroupStateChangeReason & GetStateChangeReason() const
void SetStateChangeReason(InstanceGroupStateChangeReason &&value)
InstanceGroupStatus & WithStateChangeReason(InstanceGroupStateChangeReason &&value)
void SetState(InstanceGroupState &&value)
void SetStateChangeReason(const InstanceGroupStateChangeReason &value)
InstanceGroupStatus & WithState(const InstanceGroupState &value)
InstanceGroupStatus & WithTimeline(const InstanceGroupTimeline &value)
const InstanceGroupState & GetState() const
void SetState(const InstanceGroupState &value)
InstanceGroupStatus & WithState(InstanceGroupState &&value)
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:34
void SetTimeline(InstanceGroupTimeline &&value)
void SetTimeline(const InstanceGroupTimeline &value)
JSON (JavaScript Object Notation).