AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
50 inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
51 inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
52 inline ActionState& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
53 inline ActionState& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
54 inline ActionState& WithActionName(const char* value) { SetActionName(value); return *this;}
56
58
61 inline const ActionRevision& GetCurrentRevision() const{ return m_currentRevision; }
62 inline bool CurrentRevisionHasBeenSet() const { return m_currentRevisionHasBeenSet; }
63 inline void SetCurrentRevision(const ActionRevision& value) { m_currentRevisionHasBeenSet = true; m_currentRevision = value; }
64 inline void SetCurrentRevision(ActionRevision&& value) { m_currentRevisionHasBeenSet = true; m_currentRevision = std::move(value); }
65 inline ActionState& WithCurrentRevision(const ActionRevision& value) { SetCurrentRevision(value); return *this;}
66 inline ActionState& WithCurrentRevision(ActionRevision&& value) { SetCurrentRevision(std::move(value)); return *this;}
68
70
73 inline const ActionExecution& GetLatestExecution() const{ return m_latestExecution; }
74 inline bool LatestExecutionHasBeenSet() const { return m_latestExecutionHasBeenSet; }
75 inline void SetLatestExecution(const ActionExecution& value) { m_latestExecutionHasBeenSet = true; m_latestExecution = value; }
76 inline void SetLatestExecution(ActionExecution&& value) { m_latestExecutionHasBeenSet = true; m_latestExecution = std::move(value); }
77 inline ActionState& WithLatestExecution(const ActionExecution& value) { SetLatestExecution(value); return *this;}
78 inline ActionState& WithLatestExecution(ActionExecution&& value) { SetLatestExecution(std::move(value)); return *this;}
80
82
86 inline const Aws::String& GetEntityUrl() const{ return m_entityUrl; }
87 inline bool EntityUrlHasBeenSet() const { return m_entityUrlHasBeenSet; }
88 inline void SetEntityUrl(const Aws::String& value) { m_entityUrlHasBeenSet = true; m_entityUrl = value; }
89 inline void SetEntityUrl(Aws::String&& value) { m_entityUrlHasBeenSet = true; m_entityUrl = std::move(value); }
90 inline void SetEntityUrl(const char* value) { m_entityUrlHasBeenSet = true; m_entityUrl.assign(value); }
91 inline ActionState& WithEntityUrl(const Aws::String& value) { SetEntityUrl(value); return *this;}
92 inline ActionState& WithEntityUrl(Aws::String&& value) { SetEntityUrl(std::move(value)); return *this;}
93 inline ActionState& WithEntityUrl(const char* value) { SetEntityUrl(value); return *this;}
95
97
101 inline const Aws::String& GetRevisionUrl() const{ return m_revisionUrl; }
102 inline bool RevisionUrlHasBeenSet() const { return m_revisionUrlHasBeenSet; }
103 inline void SetRevisionUrl(const Aws::String& value) { m_revisionUrlHasBeenSet = true; m_revisionUrl = value; }
104 inline void SetRevisionUrl(Aws::String&& value) { m_revisionUrlHasBeenSet = true; m_revisionUrl = std::move(value); }
105 inline void SetRevisionUrl(const char* value) { m_revisionUrlHasBeenSet = true; m_revisionUrl.assign(value); }
106 inline ActionState& WithRevisionUrl(const Aws::String& value) { SetRevisionUrl(value); return *this;}
107 inline ActionState& WithRevisionUrl(Aws::String&& value) { SetRevisionUrl(std::move(value)); return *this;}
108 inline ActionState& WithRevisionUrl(const char* value) { SetRevisionUrl(value); return *this;}
110 private:
111
112 Aws::String m_actionName;
113 bool m_actionNameHasBeenSet = false;
114
115 ActionRevision m_currentRevision;
116 bool m_currentRevisionHasBeenSet = false;
117
118 ActionExecution m_latestExecution;
119 bool m_latestExecutionHasBeenSet = false;
120
121 Aws::String m_entityUrl;
122 bool m_entityUrlHasBeenSet = false;
123
124 Aws::String m_revisionUrl;
125 bool m_revisionUrlHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace CodePipeline
130} // namespace Aws
void SetEntityUrl(const Aws::String &value)
Definition ActionState.h:88
void SetCurrentRevision(const ActionRevision &value)
Definition ActionState.h:63
const Aws::String & GetActionName() const
Definition ActionState.h:47
void SetActionName(Aws::String &&value)
Definition ActionState.h:50
void SetLatestExecution(ActionExecution &&value)
Definition ActionState.h:76
ActionState & WithLatestExecution(ActionExecution &&value)
Definition ActionState.h:78
void SetLatestExecution(const ActionExecution &value)
Definition ActionState.h:75
void SetRevisionUrl(Aws::String &&value)
void SetRevisionUrl(const char *value)
void SetEntityUrl(Aws::String &&value)
Definition ActionState.h:89
const ActionExecution & GetLatestExecution() const
Definition ActionState.h:73
void SetEntityUrl(const char *value)
Definition ActionState.h:90
ActionState & WithEntityUrl(const Aws::String &value)
Definition ActionState.h:91
ActionState & WithLatestExecution(const ActionExecution &value)
Definition ActionState.h:77
AWS_CODEPIPELINE_API ActionState(Aws::Utils::Json::JsonView jsonValue)
const ActionRevision & GetCurrentRevision() const
Definition ActionState.h:61
ActionState & WithRevisionUrl(const char *value)
AWS_CODEPIPELINE_API ActionState & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetActionName(const char *value)
Definition ActionState.h:51
void SetActionName(const Aws::String &value)
Definition ActionState.h:49
const Aws::String & GetEntityUrl() const
Definition ActionState.h:86
ActionState & WithCurrentRevision(const ActionRevision &value)
Definition ActionState.h:65
void SetRevisionUrl(const Aws::String &value)
void SetCurrentRevision(ActionRevision &&value)
Definition ActionState.h:64
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
ActionState & WithRevisionUrl(Aws::String &&value)
const Aws::String & GetRevisionUrl() const
ActionState & WithActionName(const char *value)
Definition ActionState.h:54
ActionState & WithActionName(Aws::String &&value)
Definition ActionState.h:53
ActionState & WithEntityUrl(Aws::String &&value)
Definition ActionState.h:92
ActionState & WithRevisionUrl(const Aws::String &value)
ActionState & WithEntityUrl(const char *value)
Definition ActionState.h:93
AWS_CODEPIPELINE_API ActionState()
ActionState & WithActionName(const Aws::String &value)
Definition ActionState.h:52
ActionState & WithCurrentRevision(ActionRevision &&value)
Definition ActionState.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue