AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RuleSummary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/EventSourceName.h>
10#include <aws/connect/model/RulePublishStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/connect/model/ActionSummary.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Connect
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_CONNECT_API RuleSummary() = default;
41 AWS_CONNECT_API RuleSummary(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 RuleSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
57
59
62 inline const Aws::String& GetRuleId() const { return m_ruleId; }
63 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
64 template<typename RuleIdT = Aws::String>
65 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
66 template<typename RuleIdT = Aws::String>
67 RuleSummary& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
75 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
76 template<typename RuleArnT = Aws::String>
77 void SetRuleArn(RuleArnT&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::forward<RuleArnT>(value); }
78 template<typename RuleArnT = Aws::String>
79 RuleSummary& WithRuleArn(RuleArnT&& value) { SetRuleArn(std::forward<RuleArnT>(value)); return *this;}
81
83
86 inline EventSourceName GetEventSourceName() const { return m_eventSourceName; }
87 inline bool EventSourceNameHasBeenSet() const { return m_eventSourceNameHasBeenSet; }
88 inline void SetEventSourceName(EventSourceName value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName = value; }
89 inline RuleSummary& WithEventSourceName(EventSourceName value) { SetEventSourceName(value); return *this;}
91
93
96 inline RulePublishStatus GetPublishStatus() const { return m_publishStatus; }
97 inline bool PublishStatusHasBeenSet() const { return m_publishStatusHasBeenSet; }
98 inline void SetPublishStatus(RulePublishStatus value) { m_publishStatusHasBeenSet = true; m_publishStatus = value; }
99 inline RuleSummary& WithPublishStatus(RulePublishStatus value) { SetPublishStatus(value); return *this;}
101
103
106 inline const Aws::Vector<ActionSummary>& GetActionSummaries() const { return m_actionSummaries; }
107 inline bool ActionSummariesHasBeenSet() const { return m_actionSummariesHasBeenSet; }
108 template<typename ActionSummariesT = Aws::Vector<ActionSummary>>
109 void SetActionSummaries(ActionSummariesT&& value) { m_actionSummariesHasBeenSet = true; m_actionSummaries = std::forward<ActionSummariesT>(value); }
110 template<typename ActionSummariesT = Aws::Vector<ActionSummary>>
111 RuleSummary& WithActionSummaries(ActionSummariesT&& value) { SetActionSummaries(std::forward<ActionSummariesT>(value)); return *this;}
112 template<typename ActionSummariesT = ActionSummary>
113 RuleSummary& AddActionSummaries(ActionSummariesT&& value) { m_actionSummariesHasBeenSet = true; m_actionSummaries.emplace_back(std::forward<ActionSummariesT>(value)); return *this; }
115
117
120 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
121 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
122 template<typename CreatedTimeT = Aws::Utils::DateTime>
123 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
124 template<typename CreatedTimeT = Aws::Utils::DateTime>
125 RuleSummary& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
127
129
132 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
133 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
134 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
135 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
136 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
137 RuleSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
139 private:
140
141 Aws::String m_name;
142 bool m_nameHasBeenSet = false;
143
144 Aws::String m_ruleId;
145 bool m_ruleIdHasBeenSet = false;
146
147 Aws::String m_ruleArn;
148 bool m_ruleArnHasBeenSet = false;
149
150 EventSourceName m_eventSourceName{EventSourceName::NOT_SET};
151 bool m_eventSourceNameHasBeenSet = false;
152
154 bool m_publishStatusHasBeenSet = false;
155
156 Aws::Vector<ActionSummary> m_actionSummaries;
157 bool m_actionSummariesHasBeenSet = false;
158
159 Aws::Utils::DateTime m_createdTime{};
160 bool m_createdTimeHasBeenSet = false;
161
162 Aws::Utils::DateTime m_lastUpdatedTime{};
163 bool m_lastUpdatedTimeHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace Connect
168} // namespace Aws
void SetCreatedTime(CreatedTimeT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API RuleSummary()=default
AWS_CONNECT_API RuleSummary(Aws::Utils::Json::JsonView jsonValue)
EventSourceName GetEventSourceName() const
Definition RuleSummary.h:86
void SetEventSourceName(EventSourceName value)
Definition RuleSummary.h:88
void SetPublishStatus(RulePublishStatus value)
Definition RuleSummary.h:98
RulePublishStatus GetPublishStatus() const
Definition RuleSummary.h:96
RuleSummary & WithRuleArn(RuleArnT &&value)
Definition RuleSummary.h:79
const Aws::String & GetRuleArn() const
Definition RuleSummary.h:74
RuleSummary & WithRuleId(RuleIdT &&value)
Definition RuleSummary.h:67
void SetRuleArn(RuleArnT &&value)
Definition RuleSummary.h:77
RuleSummary & WithName(NameT &&value)
Definition RuleSummary.h:55
const Aws::Utils::DateTime & GetCreatedTime() const
void SetName(NameT &&value)
Definition RuleSummary.h:53
const Aws::String & GetName() const
Definition RuleSummary.h:50
RuleSummary & WithPublishStatus(RulePublishStatus value)
Definition RuleSummary.h:99
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
RuleSummary & WithEventSourceName(EventSourceName value)
Definition RuleSummary.h:89
const Aws::Utils::DateTime & GetLastUpdatedTime() const
RuleSummary & AddActionSummaries(ActionSummariesT &&value)
RuleSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
void SetActionSummaries(ActionSummariesT &&value)
RuleSummary & WithActionSummaries(ActionSummariesT &&value)
void SetRuleId(RuleIdT &&value)
Definition RuleSummary.h:65
AWS_CONNECT_API RuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ActionSummary > & GetActionSummaries() const
const Aws::String & GetRuleId() const
Definition RuleSummary.h:62
RuleSummary & WithCreatedTime(CreatedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue