AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename RuleNameT = Aws::String>
52 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
53 template<typename RuleNameT = Aws::String>
54 RuleState& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
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) { m_currentRevisionHasBeenSet = true; m_currentRevision = std::forward<CurrentRevisionT>(value); }
66 template<typename CurrentRevisionT = RuleRevision>
67 RuleState& WithCurrentRevision(CurrentRevisionT&& value) { SetCurrentRevision(std::forward<CurrentRevisionT>(value)); return *this;}
69
71
74 inline const RuleExecution& GetLatestExecution() const { return m_latestExecution; }
75 inline bool LatestExecutionHasBeenSet() const { return m_latestExecutionHasBeenSet; }
76 template<typename LatestExecutionT = RuleExecution>
77 void SetLatestExecution(LatestExecutionT&& value) { m_latestExecutionHasBeenSet = true; m_latestExecution = std::forward<LatestExecutionT>(value); }
78 template<typename LatestExecutionT = RuleExecution>
79 RuleState& WithLatestExecution(LatestExecutionT&& value) { SetLatestExecution(std::forward<LatestExecutionT>(value)); return *this;}
81
83
87 inline const Aws::String& GetEntityUrl() const { return m_entityUrl; }
88 inline bool EntityUrlHasBeenSet() const { return m_entityUrlHasBeenSet; }
89 template<typename EntityUrlT = Aws::String>
90 void SetEntityUrl(EntityUrlT&& value) { m_entityUrlHasBeenSet = true; m_entityUrl = std::forward<EntityUrlT>(value); }
91 template<typename EntityUrlT = Aws::String>
92 RuleState& WithEntityUrl(EntityUrlT&& value) { SetEntityUrl(std::forward<EntityUrlT>(value)); return *this;}
94
96
100 inline const Aws::String& GetRevisionUrl() const { return m_revisionUrl; }
101 inline bool RevisionUrlHasBeenSet() const { return m_revisionUrlHasBeenSet; }
102 template<typename RevisionUrlT = Aws::String>
103 void SetRevisionUrl(RevisionUrlT&& value) { m_revisionUrlHasBeenSet = true; m_revisionUrl = std::forward<RevisionUrlT>(value); }
104 template<typename RevisionUrlT = Aws::String>
105 RuleState& WithRevisionUrl(RevisionUrlT&& value) { SetRevisionUrl(std::forward<RevisionUrlT>(value)); return *this;}
107 private:
108
109 Aws::String m_ruleName;
110 bool m_ruleNameHasBeenSet = false;
111
112 RuleRevision m_currentRevision;
113 bool m_currentRevisionHasBeenSet = false;
114
115 RuleExecution m_latestExecution;
116 bool m_latestExecutionHasBeenSet = false;
117
118 Aws::String m_entityUrl;
119 bool m_entityUrlHasBeenSet = false;
120
121 Aws::String m_revisionUrl;
122 bool m_revisionUrlHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace CodePipeline
127} // namespace Aws
void SetRuleName(RuleNameT &&value)
Definition RuleState.h:52
void SetRevisionUrl(RevisionUrlT &&value)
Definition RuleState.h:103
const Aws::String & GetRevisionUrl() const
Definition RuleState.h:100
RuleState & WithCurrentRevision(CurrentRevisionT &&value)
Definition RuleState.h:67
AWS_CODEPIPELINE_API RuleState(Aws::Utils::Json::JsonView jsonValue)
RuleState & WithRuleName(RuleNameT &&value)
Definition RuleState.h:54
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRuleName() const
Definition RuleState.h:49
AWS_CODEPIPELINE_API RuleState & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLatestExecution(LatestExecutionT &&value)
Definition RuleState.h:77
AWS_CODEPIPELINE_API RuleState()=default
void SetEntityUrl(EntityUrlT &&value)
Definition RuleState.h:90
const Aws::String & GetEntityUrl() const
Definition RuleState.h:87
RuleState & WithEntityUrl(EntityUrlT &&value)
Definition RuleState.h:92
void SetCurrentRevision(CurrentRevisionT &&value)
Definition RuleState.h:65
RuleState & WithLatestExecution(LatestExecutionT &&value)
Definition RuleState.h:79
const RuleExecution & GetLatestExecution() const
Definition RuleState.h:74
RuleState & WithRevisionUrl(RevisionUrlT &&value)
Definition RuleState.h:105
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