AWS SDK for C++  0.12.9
AWS SDK for C++
StepExecutionStatusDetail.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  StepExecutionStatusDetail& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const StepExecutionState& GetState() const{ return m_state; }
50 
54  inline void SetState(const StepExecutionState& value) { m_stateHasBeenSet = true; m_state = value; }
55 
59  inline void SetState(StepExecutionState&& value) { m_stateHasBeenSet = true; m_state = value; }
60 
64  inline StepExecutionStatusDetail& WithState(const StepExecutionState& value) { SetState(value); return *this;}
65 
69  inline StepExecutionStatusDetail& WithState(StepExecutionState&& value) { SetState(value); return *this;}
70 
74  inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
75 
79  inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
80 
84  inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
85 
89  inline StepExecutionStatusDetail& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;}
90 
94  inline StepExecutionStatusDetail& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(value); return *this;}
95 
99  inline const Aws::Utils::DateTime& GetStartDateTime() const{ return m_startDateTime; }
100 
104  inline void SetStartDateTime(const Aws::Utils::DateTime& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = value; }
105 
109  inline void SetStartDateTime(Aws::Utils::DateTime&& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = value; }
110 
114  inline StepExecutionStatusDetail& WithStartDateTime(const Aws::Utils::DateTime& value) { SetStartDateTime(value); return *this;}
115 
119  inline StepExecutionStatusDetail& WithStartDateTime(Aws::Utils::DateTime&& value) { SetStartDateTime(value); return *this;}
120 
124  inline const Aws::Utils::DateTime& GetEndDateTime() const{ return m_endDateTime; }
125 
129  inline void SetEndDateTime(const Aws::Utils::DateTime& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; }
130 
134  inline void SetEndDateTime(Aws::Utils::DateTime&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; }
135 
139  inline StepExecutionStatusDetail& WithEndDateTime(const Aws::Utils::DateTime& value) { SetEndDateTime(value); return *this;}
140 
144  inline StepExecutionStatusDetail& WithEndDateTime(Aws::Utils::DateTime&& value) { SetEndDateTime(value); return *this;}
145 
149  inline const Aws::String& GetLastStateChangeReason() const{ return m_lastStateChangeReason; }
150 
154  inline void SetLastStateChangeReason(const Aws::String& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = value; }
155 
159  inline void SetLastStateChangeReason(Aws::String&& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = value; }
160 
164  inline void SetLastStateChangeReason(const char* value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason.assign(value); }
165 
169  inline StepExecutionStatusDetail& WithLastStateChangeReason(const Aws::String& value) { SetLastStateChangeReason(value); return *this;}
170 
174  inline StepExecutionStatusDetail& WithLastStateChangeReason(Aws::String&& value) { SetLastStateChangeReason(value); return *this;}
175 
179  inline StepExecutionStatusDetail& WithLastStateChangeReason(const char* value) { SetLastStateChangeReason(value); return *this;}
180 
181  private:
182  StepExecutionState m_state;
183  bool m_stateHasBeenSet;
184  Aws::Utils::DateTime m_creationDateTime;
185  bool m_creationDateTimeHasBeenSet;
186  Aws::Utils::DateTime m_startDateTime;
187  bool m_startDateTimeHasBeenSet;
188  Aws::Utils::DateTime m_endDateTime;
189  bool m_endDateTimeHasBeenSet;
190  Aws::String m_lastStateChangeReason;
191  bool m_lastStateChangeReasonHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace EMR
196 } // namespace Aws
StepExecutionStatusDetail & WithEndDateTime(const Aws::Utils::DateTime &value)
void SetState(const StepExecutionState &value)
void SetStartDateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreationDateTime() const
StepExecutionStatusDetail & WithEndDateTime(Aws::Utils::DateTime &&value)
void SetCreationDateTime(Aws::Utils::DateTime &&value)
StepExecutionStatusDetail & WithCreationDateTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetStartDateTime() const
StepExecutionStatusDetail & WithState(StepExecutionState &&value)
void SetStartDateTime(Aws::Utils::DateTime &&value)
const StepExecutionState & GetState() const
void SetEndDateTime(const Aws::Utils::DateTime &value)
StepExecutionStatusDetail & WithStartDateTime(const Aws::Utils::DateTime &value)
void SetEndDateTime(Aws::Utils::DateTime &&value)
StepExecutionStatusDetail & WithCreationDateTime(const Aws::Utils::DateTime &value)
StepExecutionStatusDetail & WithLastStateChangeReason(Aws::String &&value)
StepExecutionStatusDetail & WithLastStateChangeReason(const char *value)
void SetLastStateChangeReason(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StepExecutionStatusDetail & WithLastStateChangeReason(const Aws::String &value)
StepExecutionStatusDetail & WithState(const StepExecutionState &value)
StepExecutionStatusDetail & WithStartDateTime(Aws::Utils::DateTime &&value)
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:34
void SetCreationDateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEndDateTime() const
JSON (JavaScript Object Notation).