AWS SDK for C++  0.12.9
AWS SDK for C++
JobFlowExecutionStatusDetail.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  JobFlowExecutionStatusDetail& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const JobFlowExecutionState& GetState() const{ return m_state; }
50 
54  inline void SetState(const JobFlowExecutionState& value) { m_stateHasBeenSet = true; m_state = value; }
55 
59  inline void SetState(JobFlowExecutionState&& value) { m_stateHasBeenSet = true; m_state = value; }
60 
64  inline JobFlowExecutionStatusDetail& WithState(const JobFlowExecutionState& value) { SetState(value); return *this;}
65 
69  inline JobFlowExecutionStatusDetail& WithState(JobFlowExecutionState&& 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 JobFlowExecutionStatusDetail& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;}
90 
94  inline JobFlowExecutionStatusDetail& 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 JobFlowExecutionStatusDetail& WithStartDateTime(const Aws::Utils::DateTime& value) { SetStartDateTime(value); return *this;}
115 
119  inline JobFlowExecutionStatusDetail& WithStartDateTime(Aws::Utils::DateTime&& value) { SetStartDateTime(value); return *this;}
120 
125  inline const Aws::Utils::DateTime& GetReadyDateTime() const{ return m_readyDateTime; }
126 
131  inline void SetReadyDateTime(const Aws::Utils::DateTime& value) { m_readyDateTimeHasBeenSet = true; m_readyDateTime = value; }
132 
137  inline void SetReadyDateTime(Aws::Utils::DateTime&& value) { m_readyDateTimeHasBeenSet = true; m_readyDateTime = value; }
138 
143  inline JobFlowExecutionStatusDetail& WithReadyDateTime(const Aws::Utils::DateTime& value) { SetReadyDateTime(value); return *this;}
144 
149  inline JobFlowExecutionStatusDetail& WithReadyDateTime(Aws::Utils::DateTime&& value) { SetReadyDateTime(value); return *this;}
150 
154  inline const Aws::Utils::DateTime& GetEndDateTime() const{ return m_endDateTime; }
155 
159  inline void SetEndDateTime(const Aws::Utils::DateTime& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; }
160 
164  inline void SetEndDateTime(Aws::Utils::DateTime&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; }
165 
169  inline JobFlowExecutionStatusDetail& WithEndDateTime(const Aws::Utils::DateTime& value) { SetEndDateTime(value); return *this;}
170 
174  inline JobFlowExecutionStatusDetail& WithEndDateTime(Aws::Utils::DateTime&& value) { SetEndDateTime(value); return *this;}
175 
179  inline const Aws::String& GetLastStateChangeReason() const{ return m_lastStateChangeReason; }
180 
184  inline void SetLastStateChangeReason(const Aws::String& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = value; }
185 
189  inline void SetLastStateChangeReason(Aws::String&& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = value; }
190 
194  inline void SetLastStateChangeReason(const char* value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason.assign(value); }
195 
199  inline JobFlowExecutionStatusDetail& WithLastStateChangeReason(const Aws::String& value) { SetLastStateChangeReason(value); return *this;}
200 
204  inline JobFlowExecutionStatusDetail& WithLastStateChangeReason(Aws::String&& value) { SetLastStateChangeReason(value); return *this;}
205 
209  inline JobFlowExecutionStatusDetail& WithLastStateChangeReason(const char* value) { SetLastStateChangeReason(value); return *this;}
210 
211  private:
212  JobFlowExecutionState m_state;
213  bool m_stateHasBeenSet;
214  Aws::Utils::DateTime m_creationDateTime;
215  bool m_creationDateTimeHasBeenSet;
216  Aws::Utils::DateTime m_startDateTime;
217  bool m_startDateTimeHasBeenSet;
218  Aws::Utils::DateTime m_readyDateTime;
219  bool m_readyDateTimeHasBeenSet;
220  Aws::Utils::DateTime m_endDateTime;
221  bool m_endDateTimeHasBeenSet;
222  Aws::String m_lastStateChangeReason;
223  bool m_lastStateChangeReasonHasBeenSet;
224  };
225 
226 } // namespace Model
227 } // namespace EMR
228 } // namespace Aws
JobFlowExecutionStatusDetail & WithEndDateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStartDateTime() const
const Aws::Utils::DateTime & GetCreationDateTime() const
JobFlowExecutionStatusDetail & WithReadyDateTime(const Aws::Utils::DateTime &value)
JobFlowExecutionStatusDetail & WithState(JobFlowExecutionState &&value)
void SetCreationDateTime(Aws::Utils::DateTime &&value)
const JobFlowExecutionState & GetState() const
JobFlowExecutionStatusDetail & WithState(const JobFlowExecutionState &value)
void SetStartDateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetReadyDateTime() const
const Aws::Utils::DateTime & GetEndDateTime() const
void SetState(const JobFlowExecutionState &value)
void SetCreationDateTime(const Aws::Utils::DateTime &value)
JobFlowExecutionStatusDetail & WithStartDateTime(Aws::Utils::DateTime &&value)
JobFlowExecutionStatusDetail & WithCreationDateTime(Aws::Utils::DateTime &&value)
JobFlowExecutionStatusDetail & WithReadyDateTime(Aws::Utils::DateTime &&value)
JobFlowExecutionStatusDetail & WithLastStateChangeReason(Aws::String &&value)
JobFlowExecutionStatusDetail & WithEndDateTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JobFlowExecutionStatusDetail & WithCreationDateTime(const Aws::Utils::DateTime &value)
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:34
JobFlowExecutionStatusDetail & WithStartDateTime(const Aws::Utils::DateTime &value)
JobFlowExecutionStatusDetail & WithLastStateChangeReason(const Aws::String &value)
JobFlowExecutionStatusDetail & WithLastStateChangeReason(const char *value)
void SetEndDateTime(const Aws::Utils::DateTime &value)
JSON (JavaScript Object Notation).
void SetReadyDateTime(const Aws::Utils::DateTime &value)