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