AWS SDK for C++  0.12.9
AWS SDK for C++
TransitionState.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace CodePipeline
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  TransitionState& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline bool GetEnabled() const{ return m_enabled; }
51 
56  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
57 
62  inline TransitionState& WithEnabled(bool value) { SetEnabled(value); return *this;}
63 
67  inline const Aws::String& GetLastChangedBy() const{ return m_lastChangedBy; }
68 
72  inline void SetLastChangedBy(const Aws::String& value) { m_lastChangedByHasBeenSet = true; m_lastChangedBy = value; }
73 
77  inline void SetLastChangedBy(Aws::String&& value) { m_lastChangedByHasBeenSet = true; m_lastChangedBy = value; }
78 
82  inline void SetLastChangedBy(const char* value) { m_lastChangedByHasBeenSet = true; m_lastChangedBy.assign(value); }
83 
87  inline TransitionState& WithLastChangedBy(const Aws::String& value) { SetLastChangedBy(value); return *this;}
88 
92  inline TransitionState& WithLastChangedBy(Aws::String&& value) { SetLastChangedBy(value); return *this;}
93 
97  inline TransitionState& WithLastChangedBy(const char* value) { SetLastChangedBy(value); return *this;}
98 
102  inline const Aws::Utils::DateTime& GetLastChangedAt() const{ return m_lastChangedAt; }
103 
107  inline void SetLastChangedAt(const Aws::Utils::DateTime& value) { m_lastChangedAtHasBeenSet = true; m_lastChangedAt = value; }
108 
112  inline void SetLastChangedAt(Aws::Utils::DateTime&& value) { m_lastChangedAtHasBeenSet = true; m_lastChangedAt = value; }
113 
117  inline TransitionState& WithLastChangedAt(const Aws::Utils::DateTime& value) { SetLastChangedAt(value); return *this;}
118 
122  inline TransitionState& WithLastChangedAt(Aws::Utils::DateTime&& value) { SetLastChangedAt(value); return *this;}
123 
128  inline const Aws::String& GetDisabledReason() const{ return m_disabledReason; }
129 
134  inline void SetDisabledReason(const Aws::String& value) { m_disabledReasonHasBeenSet = true; m_disabledReason = value; }
135 
140  inline void SetDisabledReason(Aws::String&& value) { m_disabledReasonHasBeenSet = true; m_disabledReason = value; }
141 
146  inline void SetDisabledReason(const char* value) { m_disabledReasonHasBeenSet = true; m_disabledReason.assign(value); }
147 
152  inline TransitionState& WithDisabledReason(const Aws::String& value) { SetDisabledReason(value); return *this;}
153 
158  inline TransitionState& WithDisabledReason(Aws::String&& value) { SetDisabledReason(value); return *this;}
159 
164  inline TransitionState& WithDisabledReason(const char* value) { SetDisabledReason(value); return *this;}
165 
166  private:
167  bool m_enabled;
168  bool m_enabledHasBeenSet;
169  Aws::String m_lastChangedBy;
170  bool m_lastChangedByHasBeenSet;
171  Aws::Utils::DateTime m_lastChangedAt;
172  bool m_lastChangedAtHasBeenSet;
173  Aws::String m_disabledReason;
174  bool m_disabledReasonHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace CodePipeline
179 } // namespace Aws
const Aws::String & GetLastChangedBy() const
TransitionState & WithDisabledReason(const Aws::String &value)
const Aws::Utils::DateTime & GetLastChangedAt() const
TransitionState & WithEnabled(bool value)
void SetLastChangedBy(Aws::String &&value)
TransitionState & WithLastChangedBy(const char *value)
TransitionState & WithLastChangedAt(const Aws::Utils::DateTime &value)
void SetDisabledReason(Aws::String &&value)
TransitionState & WithLastChangedAt(Aws::Utils::DateTime &&value)
#define AWS_CODEPIPELINE_API
TransitionState & WithDisabledReason(Aws::String &&value)
TransitionState & WithDisabledReason(const char *value)
void SetLastChangedAt(Aws::Utils::DateTime &&value)
TransitionState & WithLastChangedBy(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDisabledReason(const Aws::String &value)
void SetLastChangedBy(const Aws::String &value)
void SetLastChangedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetDisabledReason() const
TransitionState & WithLastChangedBy(const Aws::String &value)
JSON (JavaScript Object Notation).