AWS SDK for C++  0.14.3
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
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace EMR
32 {
33 namespace Model
34 {
35 
40  {
41  public:
42  StepStatus();
43  StepStatus(const Aws::Utils::Json::JsonValue& jsonValue);
44  StepStatus& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const StepState& GetState() const{ return m_state; }
51 
55  inline void SetState(const StepState& value) { m_stateHasBeenSet = true; m_state = value; }
56 
60  inline void SetState(StepState&& value) { m_stateHasBeenSet = true; m_state = value; }
61 
65  inline StepStatus& WithState(const StepState& value) { SetState(value); return *this;}
66 
70  inline StepStatus& WithState(StepState&& value) { SetState(value); return *this;}
71 
75  inline const StepStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; }
76 
80  inline void SetStateChangeReason(const StepStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
81 
85  inline void SetStateChangeReason(StepStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
86 
90  inline StepStatus& WithStateChangeReason(const StepStateChangeReason& value) { SetStateChangeReason(value); return *this;}
91 
95  inline StepStatus& WithStateChangeReason(StepStateChangeReason&& value) { SetStateChangeReason(value); return *this;}
96 
101  inline const FailureDetails& GetFailureDetails() const{ return m_failureDetails; }
102 
107  inline void SetFailureDetails(const FailureDetails& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = value; }
108 
113  inline void SetFailureDetails(FailureDetails&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = value; }
114 
119  inline StepStatus& WithFailureDetails(const FailureDetails& value) { SetFailureDetails(value); return *this;}
120 
125  inline StepStatus& WithFailureDetails(FailureDetails&& value) { SetFailureDetails(value); return *this;}
126 
130  inline const StepTimeline& GetTimeline() const{ return m_timeline; }
131 
135  inline void SetTimeline(const StepTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; }
136 
140  inline void SetTimeline(StepTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = value; }
141 
145  inline StepStatus& WithTimeline(const StepTimeline& value) { SetTimeline(value); return *this;}
146 
150  inline StepStatus& WithTimeline(StepTimeline&& value) { SetTimeline(value); return *this;}
151 
152  private:
153  StepState m_state;
154  bool m_stateHasBeenSet;
155  StepStateChangeReason m_stateChangeReason;
156  bool m_stateChangeReasonHasBeenSet;
157  FailureDetails m_failureDetails;
158  bool m_failureDetailsHasBeenSet;
159  StepTimeline m_timeline;
160  bool m_timelineHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace EMR
165 } // namespace Aws
const FailureDetails & GetFailureDetails() const
Definition: StepStatus.h:101
StepStatus & WithStateChangeReason(StepStateChangeReason &&value)
Definition: StepStatus.h:95
void SetFailureDetails(FailureDetails &&value)
Definition: StepStatus.h:113
StepStatus & WithStateChangeReason(const StepStateChangeReason &value)
Definition: StepStatus.h:90
void SetStateChangeReason(StepStateChangeReason &&value)
Definition: StepStatus.h:85
void SetTimeline(const StepTimeline &value)
Definition: StepStatus.h:135
void SetFailureDetails(const FailureDetails &value)
Definition: StepStatus.h:107
StepStatus & WithState(StepState &&value)
Definition: StepStatus.h:70
StepStatus & WithTimeline(const StepTimeline &value)
Definition: StepStatus.h:145
StepStatus & WithState(const StepState &value)
Definition: StepStatus.h:65
const StepStateChangeReason & GetStateChangeReason() const
Definition: StepStatus.h:75
void SetState(const StepState &value)
Definition: StepStatus.h:55
void SetStateChangeReason(const StepStateChangeReason &value)
Definition: StepStatus.h:80
void SetTimeline(StepTimeline &&value)
Definition: StepStatus.h:140
const StepTimeline & GetTimeline() const
Definition: StepStatus.h:130
StepStatus & WithFailureDetails(const FailureDetails &value)
Definition: StepStatus.h:119
void SetState(StepState &&value)
Definition: StepStatus.h:60
const StepState & GetState() const
Definition: StepStatus.h:50
StepStatus & WithFailureDetails(FailureDetails &&value)
Definition: StepStatus.h:125
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:37
StepStatus & WithTimeline(StepTimeline &&value)
Definition: StepStatus.h:150
JSON (JavaScript Object Notation).