AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ActionState.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/ActionExecution.h>
9#include <aws/codepipeline/model/ActionRevision.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodePipeline {
22namespace Model {
23
31 public:
32 AWS_CODEPIPELINE_API ActionState() = default;
33 AWS_CODEPIPELINE_API ActionState(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEPIPELINE_API ActionState& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetActionName() const { return m_actionName; }
42 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
43 template <typename ActionNameT = Aws::String>
44 void SetActionName(ActionNameT&& value) {
45 m_actionNameHasBeenSet = true;
46 m_actionName = std::forward<ActionNameT>(value);
47 }
48 template <typename ActionNameT = Aws::String>
49 ActionState& WithActionName(ActionNameT&& value) {
50 SetActionName(std::forward<ActionNameT>(value));
51 return *this;
52 }
54
56
59 inline const ActionRevision& GetCurrentRevision() const { return m_currentRevision; }
60 inline bool CurrentRevisionHasBeenSet() const { return m_currentRevisionHasBeenSet; }
61 template <typename CurrentRevisionT = ActionRevision>
62 void SetCurrentRevision(CurrentRevisionT&& value) {
63 m_currentRevisionHasBeenSet = true;
64 m_currentRevision = std::forward<CurrentRevisionT>(value);
65 }
66 template <typename CurrentRevisionT = ActionRevision>
67 ActionState& WithCurrentRevision(CurrentRevisionT&& value) {
68 SetCurrentRevision(std::forward<CurrentRevisionT>(value));
69 return *this;
70 }
72
74
77 inline const ActionExecution& GetLatestExecution() const { return m_latestExecution; }
78 inline bool LatestExecutionHasBeenSet() const { return m_latestExecutionHasBeenSet; }
79 template <typename LatestExecutionT = ActionExecution>
80 void SetLatestExecution(LatestExecutionT&& value) {
81 m_latestExecutionHasBeenSet = true;
82 m_latestExecution = std::forward<LatestExecutionT>(value);
83 }
84 template <typename LatestExecutionT = ActionExecution>
85 ActionState& WithLatestExecution(LatestExecutionT&& value) {
86 SetLatestExecution(std::forward<LatestExecutionT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetEntityUrl() const { return m_entityUrl; }
97 inline bool EntityUrlHasBeenSet() const { return m_entityUrlHasBeenSet; }
98 template <typename EntityUrlT = Aws::String>
99 void SetEntityUrl(EntityUrlT&& value) {
100 m_entityUrlHasBeenSet = true;
101 m_entityUrl = std::forward<EntityUrlT>(value);
102 }
103 template <typename EntityUrlT = Aws::String>
104 ActionState& WithEntityUrl(EntityUrlT&& value) {
105 SetEntityUrl(std::forward<EntityUrlT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetRevisionUrl() const { return m_revisionUrl; }
116 inline bool RevisionUrlHasBeenSet() const { return m_revisionUrlHasBeenSet; }
117 template <typename RevisionUrlT = Aws::String>
118 void SetRevisionUrl(RevisionUrlT&& value) {
119 m_revisionUrlHasBeenSet = true;
120 m_revisionUrl = std::forward<RevisionUrlT>(value);
121 }
122 template <typename RevisionUrlT = Aws::String>
123 ActionState& WithRevisionUrl(RevisionUrlT&& value) {
124 SetRevisionUrl(std::forward<RevisionUrlT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_actionName;
130
131 ActionRevision m_currentRevision;
132
133 ActionExecution m_latestExecution;
134
135 Aws::String m_entityUrl;
136
137 Aws::String m_revisionUrl;
138 bool m_actionNameHasBeenSet = false;
139 bool m_currentRevisionHasBeenSet = false;
140 bool m_latestExecutionHasBeenSet = false;
141 bool m_entityUrlHasBeenSet = false;
142 bool m_revisionUrlHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace CodePipeline
147} // namespace Aws
void SetActionName(ActionNameT &&value)
Definition ActionState.h:44
ActionState & WithActionName(ActionNameT &&value)
Definition ActionState.h:49
const Aws::String & GetActionName() const
Definition ActionState.h:41
const ActionExecution & GetLatestExecution() const
Definition ActionState.h:77
AWS_CODEPIPELINE_API ActionState(Aws::Utils::Json::JsonView jsonValue)
const ActionRevision & GetCurrentRevision() const
Definition ActionState.h:59
AWS_CODEPIPELINE_API ActionState & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEntityUrl(EntityUrlT &&value)
Definition ActionState.h:99
ActionState & WithLatestExecution(LatestExecutionT &&value)
Definition ActionState.h:85
const Aws::String & GetEntityUrl() const
Definition ActionState.h:96
void SetCurrentRevision(CurrentRevisionT &&value)
Definition ActionState.h:62
void SetLatestExecution(LatestExecutionT &&value)
Definition ActionState.h:80
AWS_CODEPIPELINE_API ActionState()=default
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRevisionUrl() const
ActionState & WithEntityUrl(EntityUrlT &&value)
ActionState & WithCurrentRevision(CurrentRevisionT &&value)
Definition ActionState.h:67
ActionState & WithRevisionUrl(RevisionUrlT &&value)
void SetRevisionUrl(RevisionUrlT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue