AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TransitionState.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodePipeline {
21namespace Model {
22
30 public:
31 AWS_CODEPIPELINE_API TransitionState() = default;
32 AWS_CODEPIPELINE_API TransitionState(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEPIPELINE_API TransitionState& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline bool GetEnabled() const { return m_enabled; }
42 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
43 inline void SetEnabled(bool value) {
44 m_enabledHasBeenSet = true;
45 m_enabled = value;
46 }
47 inline TransitionState& WithEnabled(bool value) {
48 SetEnabled(value);
49 return *this;
50 }
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) {
61 m_lastChangedByHasBeenSet = true;
62 m_lastChangedBy = std::forward<LastChangedByT>(value);
63 }
64 template <typename LastChangedByT = Aws::String>
65 TransitionState& WithLastChangedBy(LastChangedByT&& value) {
66 SetLastChangedBy(std::forward<LastChangedByT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetLastChangedAt() const { return m_lastChangedAt; }
76 inline bool LastChangedAtHasBeenSet() const { return m_lastChangedAtHasBeenSet; }
77 template <typename LastChangedAtT = Aws::Utils::DateTime>
78 void SetLastChangedAt(LastChangedAtT&& value) {
79 m_lastChangedAtHasBeenSet = true;
80 m_lastChangedAt = std::forward<LastChangedAtT>(value);
81 }
82 template <typename LastChangedAtT = Aws::Utils::DateTime>
83 TransitionState& WithLastChangedAt(LastChangedAtT&& value) {
84 SetLastChangedAt(std::forward<LastChangedAtT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetDisabledReason() const { return m_disabledReason; }
95 inline bool DisabledReasonHasBeenSet() const { return m_disabledReasonHasBeenSet; }
96 template <typename DisabledReasonT = Aws::String>
97 void SetDisabledReason(DisabledReasonT&& value) {
98 m_disabledReasonHasBeenSet = true;
99 m_disabledReason = std::forward<DisabledReasonT>(value);
100 }
101 template <typename DisabledReasonT = Aws::String>
102 TransitionState& WithDisabledReason(DisabledReasonT&& value) {
103 SetDisabledReason(std::forward<DisabledReasonT>(value));
104 return *this;
105 }
107 private:
108 bool m_enabled{false};
109
110 Aws::String m_lastChangedBy;
111
112 Aws::Utils::DateTime m_lastChangedAt{};
113
114 Aws::String m_disabledReason;
115 bool m_enabledHasBeenSet = false;
116 bool m_lastChangedByHasBeenSet = false;
117 bool m_lastChangedAtHasBeenSet = false;
118 bool m_disabledReasonHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace CodePipeline
123} // 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