AWS SDK for C++  1.9.106
AWS SDK for C++
TransitionState.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace CodePipeline
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline bool GetEnabled() const{ return m_enabled; }
47 
52  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
53 
58  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
59 
64  inline TransitionState& WithEnabled(bool value) { SetEnabled(value); return *this;}
65 
66 
70  inline const Aws::String& GetLastChangedBy() const{ return m_lastChangedBy; }
71 
75  inline bool LastChangedByHasBeenSet() const { return m_lastChangedByHasBeenSet; }
76 
80  inline void SetLastChangedBy(const Aws::String& value) { m_lastChangedByHasBeenSet = true; m_lastChangedBy = value; }
81 
85  inline void SetLastChangedBy(Aws::String&& value) { m_lastChangedByHasBeenSet = true; m_lastChangedBy = std::move(value); }
86 
90  inline void SetLastChangedBy(const char* value) { m_lastChangedByHasBeenSet = true; m_lastChangedBy.assign(value); }
91 
95  inline TransitionState& WithLastChangedBy(const Aws::String& value) { SetLastChangedBy(value); return *this;}
96 
100  inline TransitionState& WithLastChangedBy(Aws::String&& value) { SetLastChangedBy(std::move(value)); return *this;}
101 
105  inline TransitionState& WithLastChangedBy(const char* value) { SetLastChangedBy(value); return *this;}
106 
107 
111  inline const Aws::Utils::DateTime& GetLastChangedAt() const{ return m_lastChangedAt; }
112 
116  inline bool LastChangedAtHasBeenSet() const { return m_lastChangedAtHasBeenSet; }
117 
121  inline void SetLastChangedAt(const Aws::Utils::DateTime& value) { m_lastChangedAtHasBeenSet = true; m_lastChangedAt = value; }
122 
126  inline void SetLastChangedAt(Aws::Utils::DateTime&& value) { m_lastChangedAtHasBeenSet = true; m_lastChangedAt = std::move(value); }
127 
131  inline TransitionState& WithLastChangedAt(const Aws::Utils::DateTime& value) { SetLastChangedAt(value); return *this;}
132 
136  inline TransitionState& WithLastChangedAt(Aws::Utils::DateTime&& value) { SetLastChangedAt(std::move(value)); return *this;}
137 
138 
143  inline const Aws::String& GetDisabledReason() const{ return m_disabledReason; }
144 
149  inline bool DisabledReasonHasBeenSet() const { return m_disabledReasonHasBeenSet; }
150 
155  inline void SetDisabledReason(const Aws::String& value) { m_disabledReasonHasBeenSet = true; m_disabledReason = value; }
156 
161  inline void SetDisabledReason(Aws::String&& value) { m_disabledReasonHasBeenSet = true; m_disabledReason = std::move(value); }
162 
167  inline void SetDisabledReason(const char* value) { m_disabledReasonHasBeenSet = true; m_disabledReason.assign(value); }
168 
173  inline TransitionState& WithDisabledReason(const Aws::String& value) { SetDisabledReason(value); return *this;}
174 
179  inline TransitionState& WithDisabledReason(Aws::String&& value) { SetDisabledReason(std::move(value)); return *this;}
180 
185  inline TransitionState& WithDisabledReason(const char* value) { SetDisabledReason(value); return *this;}
186 
187  private:
188 
189  bool m_enabled;
190  bool m_enabledHasBeenSet;
191 
192  Aws::String m_lastChangedBy;
193  bool m_lastChangedByHasBeenSet;
194 
195  Aws::Utils::DateTime m_lastChangedAt;
196  bool m_lastChangedAtHasBeenSet;
197 
198  Aws::String m_disabledReason;
199  bool m_disabledReasonHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace CodePipeline
204 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
AWS_CODEPIPELINE_API
#define AWS_CODEPIPELINE_API
Definition: CodePipeline_EXPORTS.h:28
DateTime.h
Aws::CodePipeline::Model::TransitionState::WithLastChangedBy
TransitionState & WithLastChangedBy(const Aws::String &value)
Definition: TransitionState.h:95
Aws::CodePipeline::Model::TransitionState::WithEnabled
TransitionState & WithEnabled(bool value)
Definition: TransitionState.h:64
Aws::CodePipeline::Model::TransitionState::GetEnabled
bool GetEnabled() const
Definition: TransitionState.h:46
Aws::CodePipeline::Model::TransitionState::WithDisabledReason
TransitionState & WithDisabledReason(const Aws::String &value)
Definition: TransitionState.h:173
Aws::CodePipeline::Model::TransitionState::TransitionState
TransitionState()
CodePipeline_EXPORTS.h
Aws::CodePipeline::Model::TransitionState::LastChangedByHasBeenSet
bool LastChangedByHasBeenSet() const
Definition: TransitionState.h:75
Aws::CodePipeline::Model::TransitionState::SetEnabled
void SetEnabled(bool value)
Definition: TransitionState.h:58
Aws::CodePipeline::Model::TransitionState::SetLastChangedBy
void SetLastChangedBy(const char *value)
Definition: TransitionState.h:90
Aws::CodePipeline::Model::TransitionState::SetDisabledReason
void SetDisabledReason(Aws::String &&value)
Definition: TransitionState.h:161
Aws::CodePipeline::Model::TransitionState::DisabledReasonHasBeenSet
bool DisabledReasonHasBeenSet() const
Definition: TransitionState.h:149
Aws::CodePipeline::Model::TransitionState::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: TransitionState.h:52
Aws::CodePipeline::Model::TransitionState::SetDisabledReason
void SetDisabledReason(const char *value)
Definition: TransitionState.h:167
Aws::CodePipeline::Model::TransitionState::WithLastChangedAt
TransitionState & WithLastChangedAt(Aws::Utils::DateTime &&value)
Definition: TransitionState.h:136
Aws::CodePipeline::Model::TransitionState::SetLastChangedBy
void SetLastChangedBy(Aws::String &&value)
Definition: TransitionState.h:85
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::CodePipeline::Model::TransitionState::LastChangedAtHasBeenSet
bool LastChangedAtHasBeenSet() const
Definition: TransitionState.h:116
Aws::CodePipeline::Model::TransitionState::SetLastChangedAt
void SetLastChangedAt(Aws::Utils::DateTime &&value)
Definition: TransitionState.h:126
Aws::CodePipeline::Model::TransitionState
Definition: TransitionState.h:34
Aws::CodePipeline::Model::TransitionState::GetLastChangedBy
const Aws::String & GetLastChangedBy() const
Definition: TransitionState.h:70
Aws::CodePipeline::Model::TransitionState::WithLastChangedAt
TransitionState & WithLastChangedAt(const Aws::Utils::DateTime &value)
Definition: TransitionState.h:131
Aws::CodePipeline::Model::TransitionState::SetLastChangedBy
void SetLastChangedBy(const Aws::String &value)
Definition: TransitionState.h:80
Aws::CodePipeline::Model::TransitionState::WithDisabledReason
TransitionState & WithDisabledReason(Aws::String &&value)
Definition: TransitionState.h:179
Aws::CodePipeline::Model::TransitionState::SetLastChangedAt
void SetLastChangedAt(const Aws::Utils::DateTime &value)
Definition: TransitionState.h:121
Aws::CodePipeline::Model::TransitionState::WithLastChangedBy
TransitionState & WithLastChangedBy(const char *value)
Definition: TransitionState.h:105
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodePipeline::Model::TransitionState::WithDisabledReason
TransitionState & WithDisabledReason(const char *value)
Definition: TransitionState.h:185
Aws::CodePipeline::Model::TransitionState::WithLastChangedBy
TransitionState & WithLastChangedBy(Aws::String &&value)
Definition: TransitionState.h:100
Aws::CodePipeline::Model::TransitionState::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodePipeline::Model::TransitionState::GetLastChangedAt
const Aws::Utils::DateTime & GetLastChangedAt() const
Definition: TransitionState.h:111
Aws::CodePipeline::Model::TransitionState::operator=
TransitionState & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodePipeline::Model::TransitionState::SetDisabledReason
void SetDisabledReason(const Aws::String &value)
Definition: TransitionState.h:155
Aws::CodePipeline::Model::TransitionState::GetDisabledReason
const Aws::String & GetDisabledReason() const
Definition: TransitionState.h:143
Aws::CodePipeline::Model::TransitionState::TransitionState
TransitionState(Aws::Utils::Json::JsonView jsonValue)