AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ActionState.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codepipeline/model/ActionRevision.h>
10#include <aws/codepipeline/model/ActionExecution.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodePipeline
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEPIPELINE_API ActionState() = default;
38 AWS_CODEPIPELINE_API ActionState(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEPIPELINE_API ActionState& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetActionName() const { return m_actionName; }
48 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
49 template<typename ActionNameT = Aws::String>
50 void SetActionName(ActionNameT&& value) { m_actionNameHasBeenSet = true; m_actionName = std::forward<ActionNameT>(value); }
51 template<typename ActionNameT = Aws::String>
52 ActionState& WithActionName(ActionNameT&& value) { SetActionName(std::forward<ActionNameT>(value)); return *this;}
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) { m_currentRevisionHasBeenSet = true; m_currentRevision = std::forward<CurrentRevisionT>(value); }
63 template<typename CurrentRevisionT = ActionRevision>
64 ActionState& WithCurrentRevision(CurrentRevisionT&& value) { SetCurrentRevision(std::forward<CurrentRevisionT>(value)); return *this;}
66
68
71 inline const ActionExecution& GetLatestExecution() const { return m_latestExecution; }
72 inline bool LatestExecutionHasBeenSet() const { return m_latestExecutionHasBeenSet; }
73 template<typename LatestExecutionT = ActionExecution>
74 void SetLatestExecution(LatestExecutionT&& value) { m_latestExecutionHasBeenSet = true; m_latestExecution = std::forward<LatestExecutionT>(value); }
75 template<typename LatestExecutionT = ActionExecution>
76 ActionState& WithLatestExecution(LatestExecutionT&& value) { SetLatestExecution(std::forward<LatestExecutionT>(value)); return *this;}
78
80
84 inline const Aws::String& GetEntityUrl() const { return m_entityUrl; }
85 inline bool EntityUrlHasBeenSet() const { return m_entityUrlHasBeenSet; }
86 template<typename EntityUrlT = Aws::String>
87 void SetEntityUrl(EntityUrlT&& value) { m_entityUrlHasBeenSet = true; m_entityUrl = std::forward<EntityUrlT>(value); }
88 template<typename EntityUrlT = Aws::String>
89 ActionState& WithEntityUrl(EntityUrlT&& value) { SetEntityUrl(std::forward<EntityUrlT>(value)); return *this;}
91
93
97 inline const Aws::String& GetRevisionUrl() const { return m_revisionUrl; }
98 inline bool RevisionUrlHasBeenSet() const { return m_revisionUrlHasBeenSet; }
99 template<typename RevisionUrlT = Aws::String>
100 void SetRevisionUrl(RevisionUrlT&& value) { m_revisionUrlHasBeenSet = true; m_revisionUrl = std::forward<RevisionUrlT>(value); }
101 template<typename RevisionUrlT = Aws::String>
102 ActionState& WithRevisionUrl(RevisionUrlT&& value) { SetRevisionUrl(std::forward<RevisionUrlT>(value)); return *this;}
104 private:
105
106 Aws::String m_actionName;
107 bool m_actionNameHasBeenSet = false;
108
109 ActionRevision m_currentRevision;
110 bool m_currentRevisionHasBeenSet = false;
111
112 ActionExecution m_latestExecution;
113 bool m_latestExecutionHasBeenSet = false;
114
115 Aws::String m_entityUrl;
116 bool m_entityUrlHasBeenSet = false;
117
118 Aws::String m_revisionUrl;
119 bool m_revisionUrlHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace CodePipeline
124} // namespace Aws
void SetActionName(ActionNameT &&value)
Definition ActionState.h:50
ActionState & WithActionName(ActionNameT &&value)
Definition ActionState.h:52
const Aws::String & GetActionName() const
Definition ActionState.h:47
const ActionExecution & GetLatestExecution() const
Definition ActionState.h:71
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:87
ActionState & WithLatestExecution(LatestExecutionT &&value)
Definition ActionState.h:76
const Aws::String & GetEntityUrl() const
Definition ActionState.h:84
void SetCurrentRevision(CurrentRevisionT &&value)
Definition ActionState.h:62
void SetLatestExecution(LatestExecutionT &&value)
Definition ActionState.h:74
AWS_CODEPIPELINE_API ActionState()=default
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRevisionUrl() const
Definition ActionState.h:97
ActionState & WithEntityUrl(EntityUrlT &&value)
Definition ActionState.h:89
ActionState & WithCurrentRevision(CurrentRevisionT &&value)
Definition ActionState.h:64
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