AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleState.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/RuleRevision.h>
10#include <aws/codepipeline/model/RuleExecution.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
37 {
38 public:
39 AWS_CODEPIPELINE_API RuleState();
40 AWS_CODEPIPELINE_API RuleState(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEPIPELINE_API RuleState& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
50 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
51 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
52 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
53 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
54 inline RuleState& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
55 inline RuleState& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
56 inline RuleState& WithRuleName(const char* value) { SetRuleName(value); return *this;}
58
60
64 inline const RuleRevision& GetCurrentRevision() const{ return m_currentRevision; }
65 inline bool CurrentRevisionHasBeenSet() const { return m_currentRevisionHasBeenSet; }
66 inline void SetCurrentRevision(const RuleRevision& value) { m_currentRevisionHasBeenSet = true; m_currentRevision = value; }
67 inline void SetCurrentRevision(RuleRevision&& value) { m_currentRevisionHasBeenSet = true; m_currentRevision = std::move(value); }
68 inline RuleState& WithCurrentRevision(const RuleRevision& value) { SetCurrentRevision(value); return *this;}
69 inline RuleState& WithCurrentRevision(RuleRevision&& value) { SetCurrentRevision(std::move(value)); return *this;}
71
73
76 inline const RuleExecution& GetLatestExecution() const{ return m_latestExecution; }
77 inline bool LatestExecutionHasBeenSet() const { return m_latestExecutionHasBeenSet; }
78 inline void SetLatestExecution(const RuleExecution& value) { m_latestExecutionHasBeenSet = true; m_latestExecution = value; }
79 inline void SetLatestExecution(RuleExecution&& value) { m_latestExecutionHasBeenSet = true; m_latestExecution = std::move(value); }
80 inline RuleState& WithLatestExecution(const RuleExecution& value) { SetLatestExecution(value); return *this;}
81 inline RuleState& WithLatestExecution(RuleExecution&& value) { SetLatestExecution(std::move(value)); return *this;}
83
85
89 inline const Aws::String& GetEntityUrl() const{ return m_entityUrl; }
90 inline bool EntityUrlHasBeenSet() const { return m_entityUrlHasBeenSet; }
91 inline void SetEntityUrl(const Aws::String& value) { m_entityUrlHasBeenSet = true; m_entityUrl = value; }
92 inline void SetEntityUrl(Aws::String&& value) { m_entityUrlHasBeenSet = true; m_entityUrl = std::move(value); }
93 inline void SetEntityUrl(const char* value) { m_entityUrlHasBeenSet = true; m_entityUrl.assign(value); }
94 inline RuleState& WithEntityUrl(const Aws::String& value) { SetEntityUrl(value); return *this;}
95 inline RuleState& WithEntityUrl(Aws::String&& value) { SetEntityUrl(std::move(value)); return *this;}
96 inline RuleState& WithEntityUrl(const char* value) { SetEntityUrl(value); return *this;}
98
100
104 inline const Aws::String& GetRevisionUrl() const{ return m_revisionUrl; }
105 inline bool RevisionUrlHasBeenSet() const { return m_revisionUrlHasBeenSet; }
106 inline void SetRevisionUrl(const Aws::String& value) { m_revisionUrlHasBeenSet = true; m_revisionUrl = value; }
107 inline void SetRevisionUrl(Aws::String&& value) { m_revisionUrlHasBeenSet = true; m_revisionUrl = std::move(value); }
108 inline void SetRevisionUrl(const char* value) { m_revisionUrlHasBeenSet = true; m_revisionUrl.assign(value); }
109 inline RuleState& WithRevisionUrl(const Aws::String& value) { SetRevisionUrl(value); return *this;}
110 inline RuleState& WithRevisionUrl(Aws::String&& value) { SetRevisionUrl(std::move(value)); return *this;}
111 inline RuleState& WithRevisionUrl(const char* value) { SetRevisionUrl(value); return *this;}
113 private:
114
115 Aws::String m_ruleName;
116 bool m_ruleNameHasBeenSet = false;
117
118 RuleRevision m_currentRevision;
119 bool m_currentRevisionHasBeenSet = false;
120
121 RuleExecution m_latestExecution;
122 bool m_latestExecutionHasBeenSet = false;
123
124 Aws::String m_entityUrl;
125 bool m_entityUrlHasBeenSet = false;
126
127 Aws::String m_revisionUrl;
128 bool m_revisionUrlHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace CodePipeline
133} // namespace Aws
RuleState & WithRevisionUrl(const char *value)
Definition RuleState.h:111
void SetLatestExecution(const RuleExecution &value)
Definition RuleState.h:78
void SetRevisionUrl(const Aws::String &value)
Definition RuleState.h:106
RuleState & WithRevisionUrl(const Aws::String &value)
Definition RuleState.h:109
void SetCurrentRevision(RuleRevision &&value)
Definition RuleState.h:67
const Aws::String & GetRevisionUrl() const
Definition RuleState.h:104
AWS_CODEPIPELINE_API RuleState(Aws::Utils::Json::JsonView jsonValue)
void SetEntityUrl(const Aws::String &value)
Definition RuleState.h:91
RuleState & WithRuleName(const Aws::String &value)
Definition RuleState.h:54
RuleState & WithLatestExecution(RuleExecution &&value)
Definition RuleState.h:81
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRuleName() const
Definition RuleState.h:49
RuleState & WithEntityUrl(Aws::String &&value)
Definition RuleState.h:95
void SetLatestExecution(RuleExecution &&value)
Definition RuleState.h:79
void SetRuleName(Aws::String &&value)
Definition RuleState.h:52
AWS_CODEPIPELINE_API RuleState & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRevisionUrl(Aws::String &&value)
Definition RuleState.h:107
const Aws::String & GetEntityUrl() const
Definition RuleState.h:89
RuleState & WithCurrentRevision(const RuleRevision &value)
Definition RuleState.h:68
RuleState & WithLatestExecution(const RuleExecution &value)
Definition RuleState.h:80
RuleState & WithRuleName(const char *value)
Definition RuleState.h:56
RuleState & WithRuleName(Aws::String &&value)
Definition RuleState.h:55
AWS_CODEPIPELINE_API RuleState()
void SetEntityUrl(Aws::String &&value)
Definition RuleState.h:92
void SetRuleName(const Aws::String &value)
Definition RuleState.h:51
void SetEntityUrl(const char *value)
Definition RuleState.h:93
RuleState & WithRevisionUrl(Aws::String &&value)
Definition RuleState.h:110
void SetRuleName(const char *value)
Definition RuleState.h:53
const RuleExecution & GetLatestExecution() const
Definition RuleState.h:76
void SetRevisionUrl(const char *value)
Definition RuleState.h:108
RuleState & WithEntityUrl(const Aws::String &value)
Definition RuleState.h:94
RuleState & WithEntityUrl(const char *value)
Definition RuleState.h:96
void SetCurrentRevision(const RuleRevision &value)
Definition RuleState.h:66
RuleState & WithCurrentRevision(RuleRevision &&value)
Definition RuleState.h:69
const RuleRevision & GetCurrentRevision() const
Definition RuleState.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue