AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RuleState.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/RuleExecution.h>
9#include <aws/codepipeline/model/RuleRevision.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
32class RuleState {
33 public:
34 AWS_CODEPIPELINE_API RuleState() = default;
35 AWS_CODEPIPELINE_API RuleState(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEPIPELINE_API RuleState& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetRuleName() const { return m_ruleName; }
44 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
45 template <typename RuleNameT = Aws::String>
46 void SetRuleName(RuleNameT&& value) {
47 m_ruleNameHasBeenSet = true;
48 m_ruleName = std::forward<RuleNameT>(value);
49 }
50 template <typename RuleNameT = Aws::String>
51 RuleState& WithRuleName(RuleNameT&& value) {
52 SetRuleName(std::forward<RuleNameT>(value));
53 return *this;
54 }
56
58
62 inline const RuleRevision& GetCurrentRevision() const { return m_currentRevision; }
63 inline bool CurrentRevisionHasBeenSet() const { return m_currentRevisionHasBeenSet; }
64 template <typename CurrentRevisionT = RuleRevision>
65 void SetCurrentRevision(CurrentRevisionT&& value) {
66 m_currentRevisionHasBeenSet = true;
67 m_currentRevision = std::forward<CurrentRevisionT>(value);
68 }
69 template <typename CurrentRevisionT = RuleRevision>
70 RuleState& WithCurrentRevision(CurrentRevisionT&& value) {
71 SetCurrentRevision(std::forward<CurrentRevisionT>(value));
72 return *this;
73 }
75
77
80 inline const RuleExecution& GetLatestExecution() const { return m_latestExecution; }
81 inline bool LatestExecutionHasBeenSet() const { return m_latestExecutionHasBeenSet; }
82 template <typename LatestExecutionT = RuleExecution>
83 void SetLatestExecution(LatestExecutionT&& value) {
84 m_latestExecutionHasBeenSet = true;
85 m_latestExecution = std::forward<LatestExecutionT>(value);
86 }
87 template <typename LatestExecutionT = RuleExecution>
88 RuleState& WithLatestExecution(LatestExecutionT&& value) {
89 SetLatestExecution(std::forward<LatestExecutionT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetEntityUrl() const { return m_entityUrl; }
100 inline bool EntityUrlHasBeenSet() const { return m_entityUrlHasBeenSet; }
101 template <typename EntityUrlT = Aws::String>
102 void SetEntityUrl(EntityUrlT&& value) {
103 m_entityUrlHasBeenSet = true;
104 m_entityUrl = std::forward<EntityUrlT>(value);
105 }
106 template <typename EntityUrlT = Aws::String>
107 RuleState& WithEntityUrl(EntityUrlT&& value) {
108 SetEntityUrl(std::forward<EntityUrlT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetRevisionUrl() const { return m_revisionUrl; }
119 inline bool RevisionUrlHasBeenSet() const { return m_revisionUrlHasBeenSet; }
120 template <typename RevisionUrlT = Aws::String>
121 void SetRevisionUrl(RevisionUrlT&& value) {
122 m_revisionUrlHasBeenSet = true;
123 m_revisionUrl = std::forward<RevisionUrlT>(value);
124 }
125 template <typename RevisionUrlT = Aws::String>
126 RuleState& WithRevisionUrl(RevisionUrlT&& value) {
127 SetRevisionUrl(std::forward<RevisionUrlT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_ruleName;
133
134 RuleRevision m_currentRevision;
135
136 RuleExecution m_latestExecution;
137
138 Aws::String m_entityUrl;
139
140 Aws::String m_revisionUrl;
141 bool m_ruleNameHasBeenSet = false;
142 bool m_currentRevisionHasBeenSet = false;
143 bool m_latestExecutionHasBeenSet = false;
144 bool m_entityUrlHasBeenSet = false;
145 bool m_revisionUrlHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace CodePipeline
150} // namespace Aws
void SetRuleName(RuleNameT &&value)
Definition RuleState.h:46
void SetRevisionUrl(RevisionUrlT &&value)
Definition RuleState.h:121
const Aws::String & GetRevisionUrl() const
Definition RuleState.h:118
RuleState & WithCurrentRevision(CurrentRevisionT &&value)
Definition RuleState.h:70
AWS_CODEPIPELINE_API RuleState(Aws::Utils::Json::JsonView jsonValue)
RuleState & WithRuleName(RuleNameT &&value)
Definition RuleState.h:51
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRuleName() const
Definition RuleState.h:43
AWS_CODEPIPELINE_API RuleState & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLatestExecution(LatestExecutionT &&value)
Definition RuleState.h:83
AWS_CODEPIPELINE_API RuleState()=default
void SetEntityUrl(EntityUrlT &&value)
Definition RuleState.h:102
const Aws::String & GetEntityUrl() const
Definition RuleState.h:99
RuleState & WithEntityUrl(EntityUrlT &&value)
Definition RuleState.h:107
void SetCurrentRevision(CurrentRevisionT &&value)
Definition RuleState.h:65
RuleState & WithLatestExecution(LatestExecutionT &&value)
Definition RuleState.h:88
const RuleExecution & GetLatestExecution() const
Definition RuleState.h:80
RuleState & WithRevisionUrl(RevisionUrlT &&value)
Definition RuleState.h:126
const RuleRevision & GetCurrentRevision() const
Definition RuleState.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue