AWS SDK for C++  0.12.9
AWS SDK for C++
LifecycleEvent.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 CodeDeploy
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  LifecycleEvent& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
51  inline const Aws::String& GetLifecycleEventName() const{ return m_lifecycleEventName; }
52 
57  inline void SetLifecycleEventName(const Aws::String& value) { m_lifecycleEventNameHasBeenSet = true; m_lifecycleEventName = value; }
58 
63  inline void SetLifecycleEventName(Aws::String&& value) { m_lifecycleEventNameHasBeenSet = true; m_lifecycleEventName = value; }
64 
69  inline void SetLifecycleEventName(const char* value) { m_lifecycleEventNameHasBeenSet = true; m_lifecycleEventName.assign(value); }
70 
75  inline LifecycleEvent& WithLifecycleEventName(const Aws::String& value) { SetLifecycleEventName(value); return *this;}
76 
81  inline LifecycleEvent& WithLifecycleEventName(Aws::String&& value) { SetLifecycleEventName(value); return *this;}
82 
87  inline LifecycleEvent& WithLifecycleEventName(const char* value) { SetLifecycleEventName(value); return *this;}
88 
92  inline const Diagnostics& GetDiagnostics() const{ return m_diagnostics; }
93 
97  inline void SetDiagnostics(const Diagnostics& value) { m_diagnosticsHasBeenSet = true; m_diagnostics = value; }
98 
102  inline void SetDiagnostics(Diagnostics&& value) { m_diagnosticsHasBeenSet = true; m_diagnostics = value; }
103 
107  inline LifecycleEvent& WithDiagnostics(const Diagnostics& value) { SetDiagnostics(value); return *this;}
108 
112  inline LifecycleEvent& WithDiagnostics(Diagnostics&& value) { SetDiagnostics(value); return *this;}
113 
117  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
118 
122  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
123 
127  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
128 
132  inline LifecycleEvent& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
133 
137  inline LifecycleEvent& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(value); return *this;}
138 
142  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
143 
147  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
148 
152  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
153 
157  inline LifecycleEvent& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
158 
162  inline LifecycleEvent& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(value); return *this;}
163 
172  inline const LifecycleEventStatus& GetStatus() const{ return m_status; }
173 
182  inline void SetStatus(const LifecycleEventStatus& value) { m_statusHasBeenSet = true; m_status = value; }
183 
192  inline void SetStatus(LifecycleEventStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
193 
202  inline LifecycleEvent& WithStatus(const LifecycleEventStatus& value) { SetStatus(value); return *this;}
203 
212  inline LifecycleEvent& WithStatus(LifecycleEventStatus&& value) { SetStatus(value); return *this;}
213 
214  private:
215  Aws::String m_lifecycleEventName;
216  bool m_lifecycleEventNameHasBeenSet;
217  Diagnostics m_diagnostics;
218  bool m_diagnosticsHasBeenSet;
219  Aws::Utils::DateTime m_startTime;
220  bool m_startTimeHasBeenSet;
221  Aws::Utils::DateTime m_endTime;
222  bool m_endTimeHasBeenSet;
223  LifecycleEventStatus m_status;
224  bool m_statusHasBeenSet;
225  };
226 
227 } // namespace Model
228 } // namespace CodeDeploy
229 } // namespace Aws
LifecycleEvent & WithEndTime(const Aws::Utils::DateTime &value)
void SetEndTime(const Aws::Utils::DateTime &value)
void SetDiagnostics(Diagnostics &&value)
void SetLifecycleEventName(const char *value)
LifecycleEvent & WithDiagnostics(const Diagnostics &value)
void SetStartTime(Aws::Utils::DateTime &&value)
LifecycleEvent & WithStartTime(Aws::Utils::DateTime &&value)
const Diagnostics & GetDiagnostics() const
LifecycleEvent & WithStatus(const LifecycleEventStatus &value)
void SetDiagnostics(const Diagnostics &value)
LifecycleEvent & WithStatus(LifecycleEventStatus &&value)
LifecycleEvent & WithStartTime(const Aws::Utils::DateTime &value)
#define AWS_CODEDEPLOY_API
const LifecycleEventStatus & GetStatus() const
void SetLifecycleEventName(Aws::String &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
void SetStatus(const LifecycleEventStatus &value)
LifecycleEvent & WithLifecycleEventName(const Aws::String &value)
const Aws::Utils::DateTime & GetEndTime() const
void SetStatus(LifecycleEventStatus &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
LifecycleEvent & WithDiagnostics(Diagnostics &&value)
void SetLifecycleEventName(const Aws::String &value)
LifecycleEvent & WithLifecycleEventName(Aws::String &&value)
const Aws::String & GetLifecycleEventName() const
const Aws::Utils::DateTime & GetStartTime() const
LifecycleEvent & WithLifecycleEventName(const char *value)
JSON (JavaScript Object Notation).
LifecycleEvent & WithEndTime(Aws::Utils::DateTime &&value)