AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename LastChangedByT = Aws::String>
60 void SetLastChangedBy(LastChangedByT&& value) { m_lastChangedByHasBeenSet = true; m_lastChangedBy = std::forward<LastChangedByT>(value); }
61 template<typename LastChangedByT = Aws::String>
62 TransitionState& WithLastChangedBy(LastChangedByT&& value) { SetLastChangedBy(std::forward<LastChangedByT>(value)); return *this;}
64
66
69 inline const Aws::Utils::DateTime& GetLastChangedAt() const { return m_lastChangedAt; }
70 inline bool LastChangedAtHasBeenSet() const { return m_lastChangedAtHasBeenSet; }
71 template<typename LastChangedAtT = Aws::Utils::DateTime>
72 void SetLastChangedAt(LastChangedAtT&& value) { m_lastChangedAtHasBeenSet = true; m_lastChangedAt = std::forward<LastChangedAtT>(value); }
73 template<typename LastChangedAtT = Aws::Utils::DateTime>
74 TransitionState& WithLastChangedAt(LastChangedAtT&& value) { SetLastChangedAt(std::forward<LastChangedAtT>(value)); return *this;}
76
78
82 inline const Aws::String& GetDisabledReason() const { return m_disabledReason; }
83 inline bool DisabledReasonHasBeenSet() const { return m_disabledReasonHasBeenSet; }
84 template<typename DisabledReasonT = Aws::String>
85 void SetDisabledReason(DisabledReasonT&& value) { m_disabledReasonHasBeenSet = true; m_disabledReason = std::forward<DisabledReasonT>(value); }
86 template<typename DisabledReasonT = Aws::String>
87 TransitionState& WithDisabledReason(DisabledReasonT&& value) { SetDisabledReason(std::forward<DisabledReasonT>(value)); return *this;}
89 private:
90
91 bool m_enabled{false};
92 bool m_enabledHasBeenSet = false;
93
94 Aws::String m_lastChangedBy;
95 bool m_lastChangedByHasBeenSet = false;
96
97 Aws::Utils::DateTime m_lastChangedAt{};
98 bool m_lastChangedAtHasBeenSet = false;
99
100 Aws::String m_disabledReason;
101 bool m_disabledReasonHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace CodePipeline
106} // namespace Aws
void SetLastChangedAt(LastChangedAtT &&value)
TransitionState & WithDisabledReason(DisabledReasonT &&value)
AWS_CODEPIPELINE_API TransitionState(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLastChangedBy() const
const Aws::String & GetDisabledReason() const
TransitionState & WithLastChangedBy(LastChangedByT &&value)
AWS_CODEPIPELINE_API TransitionState & operator=(Aws::Utils::Json::JsonView jsonValue)
TransitionState & WithLastChangedAt(LastChangedAtT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
TransitionState & WithEnabled(bool value)
AWS_CODEPIPELINE_API TransitionState()=default
const Aws::Utils::DateTime & GetLastChangedAt() const
void SetDisabledReason(DisabledReasonT &&value)
void SetLastChangedBy(LastChangedByT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue