AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitionState.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodePipeline
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODEPIPELINE_API TransitionState();
37 AWS_CODEPIPELINE_API TransitionState(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEPIPELINE_API TransitionState& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline bool GetEnabled() const{ return m_enabled; }
48 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
49 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
50 inline TransitionState& WithEnabled(bool value) { SetEnabled(value); return *this;}
52
54
57 inline const Aws::String& GetLastChangedBy() const{ return m_lastChangedBy; }
58 inline bool LastChangedByHasBeenSet() const { return m_lastChangedByHasBeenSet; }
59 inline void SetLastChangedBy(const Aws::String& value) { m_lastChangedByHasBeenSet = true; m_lastChangedBy = value; }
60 inline void SetLastChangedBy(Aws::String&& value) { m_lastChangedByHasBeenSet = true; m_lastChangedBy = std::move(value); }
61 inline void SetLastChangedBy(const char* value) { m_lastChangedByHasBeenSet = true; m_lastChangedBy.assign(value); }
62 inline TransitionState& WithLastChangedBy(const Aws::String& value) { SetLastChangedBy(value); return *this;}
63 inline TransitionState& WithLastChangedBy(Aws::String&& value) { SetLastChangedBy(std::move(value)); return *this;}
64 inline TransitionState& WithLastChangedBy(const char* value) { SetLastChangedBy(value); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetLastChangedAt() const{ return m_lastChangedAt; }
72 inline bool LastChangedAtHasBeenSet() const { return m_lastChangedAtHasBeenSet; }
73 inline void SetLastChangedAt(const Aws::Utils::DateTime& value) { m_lastChangedAtHasBeenSet = true; m_lastChangedAt = value; }
74 inline void SetLastChangedAt(Aws::Utils::DateTime&& value) { m_lastChangedAtHasBeenSet = true; m_lastChangedAt = std::move(value); }
75 inline TransitionState& WithLastChangedAt(const Aws::Utils::DateTime& value) { SetLastChangedAt(value); return *this;}
76 inline TransitionState& WithLastChangedAt(Aws::Utils::DateTime&& value) { SetLastChangedAt(std::move(value)); return *this;}
78
80
84 inline const Aws::String& GetDisabledReason() const{ return m_disabledReason; }
85 inline bool DisabledReasonHasBeenSet() const { return m_disabledReasonHasBeenSet; }
86 inline void SetDisabledReason(const Aws::String& value) { m_disabledReasonHasBeenSet = true; m_disabledReason = value; }
87 inline void SetDisabledReason(Aws::String&& value) { m_disabledReasonHasBeenSet = true; m_disabledReason = std::move(value); }
88 inline void SetDisabledReason(const char* value) { m_disabledReasonHasBeenSet = true; m_disabledReason.assign(value); }
89 inline TransitionState& WithDisabledReason(const Aws::String& value) { SetDisabledReason(value); return *this;}
90 inline TransitionState& WithDisabledReason(Aws::String&& value) { SetDisabledReason(std::move(value)); return *this;}
91 inline TransitionState& WithDisabledReason(const char* value) { SetDisabledReason(value); return *this;}
93 private:
94
95 bool m_enabled;
96 bool m_enabledHasBeenSet = false;
97
98 Aws::String m_lastChangedBy;
99 bool m_lastChangedByHasBeenSet = false;
100
101 Aws::Utils::DateTime m_lastChangedAt;
102 bool m_lastChangedAtHasBeenSet = false;
103
104 Aws::String m_disabledReason;
105 bool m_disabledReasonHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace CodePipeline
110} // namespace Aws
AWS_CODEPIPELINE_API TransitionState(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLastChangedBy() const
const Aws::String & GetDisabledReason() const
void SetLastChangedBy(const Aws::String &value)
TransitionState & WithDisabledReason(Aws::String &&value)
void SetDisabledReason(Aws::String &&value)
TransitionState & WithDisabledReason(const char *value)
TransitionState & WithLastChangedAt(Aws::Utils::DateTime &&value)
TransitionState & WithLastChangedBy(const char *value)
TransitionState & WithLastChangedAt(const Aws::Utils::DateTime &value)
void SetLastChangedAt(const Aws::Utils::DateTime &value)
AWS_CODEPIPELINE_API TransitionState & operator=(Aws::Utils::Json::JsonView jsonValue)
TransitionState & WithDisabledReason(const Aws::String &value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastChangedAt(Aws::Utils::DateTime &&value)
void SetDisabledReason(const Aws::String &value)
TransitionState & WithLastChangedBy(const Aws::String &value)
TransitionState & WithEnabled(bool value)
const Aws::Utils::DateTime & GetLastChangedAt() const
void SetLastChangedBy(Aws::String &&value)
TransitionState & WithLastChangedBy(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue