AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline RuleSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline RuleSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline RuleSummary& WithName(const char* value) { SetName(value); return *this;}
59
61
64 inline const Aws::String& GetRuleId() const{ return m_ruleId; }
65 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
66 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
67 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
68 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
69 inline RuleSummary& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
70 inline RuleSummary& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
71 inline RuleSummary& WithRuleId(const char* value) { SetRuleId(value); return *this;}
73
75
78 inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
79 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
80 inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
81 inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); }
82 inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); }
83 inline RuleSummary& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
84 inline RuleSummary& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
85 inline RuleSummary& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
87
89
92 inline const EventSourceName& GetEventSourceName() const{ return m_eventSourceName; }
93 inline bool EventSourceNameHasBeenSet() const { return m_eventSourceNameHasBeenSet; }
94 inline void SetEventSourceName(const EventSourceName& value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName = value; }
95 inline void SetEventSourceName(EventSourceName&& value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName = std::move(value); }
96 inline RuleSummary& WithEventSourceName(const EventSourceName& value) { SetEventSourceName(value); return *this;}
97 inline RuleSummary& WithEventSourceName(EventSourceName&& value) { SetEventSourceName(std::move(value)); return *this;}
99
101
104 inline const RulePublishStatus& GetPublishStatus() const{ return m_publishStatus; }
105 inline bool PublishStatusHasBeenSet() const { return m_publishStatusHasBeenSet; }
106 inline void SetPublishStatus(const RulePublishStatus& value) { m_publishStatusHasBeenSet = true; m_publishStatus = value; }
107 inline void SetPublishStatus(RulePublishStatus&& value) { m_publishStatusHasBeenSet = true; m_publishStatus = std::move(value); }
108 inline RuleSummary& WithPublishStatus(const RulePublishStatus& value) { SetPublishStatus(value); return *this;}
109 inline RuleSummary& WithPublishStatus(RulePublishStatus&& value) { SetPublishStatus(std::move(value)); return *this;}
111
113
116 inline const Aws::Vector<ActionSummary>& GetActionSummaries() const{ return m_actionSummaries; }
117 inline bool ActionSummariesHasBeenSet() const { return m_actionSummariesHasBeenSet; }
118 inline void SetActionSummaries(const Aws::Vector<ActionSummary>& value) { m_actionSummariesHasBeenSet = true; m_actionSummaries = value; }
119 inline void SetActionSummaries(Aws::Vector<ActionSummary>&& value) { m_actionSummariesHasBeenSet = true; m_actionSummaries = std::move(value); }
121 inline RuleSummary& WithActionSummaries(Aws::Vector<ActionSummary>&& value) { SetActionSummaries(std::move(value)); return *this;}
122 inline RuleSummary& AddActionSummaries(const ActionSummary& value) { m_actionSummariesHasBeenSet = true; m_actionSummaries.push_back(value); return *this; }
123 inline RuleSummary& AddActionSummaries(ActionSummary&& value) { m_actionSummariesHasBeenSet = true; m_actionSummaries.push_back(std::move(value)); return *this; }
125
127
130 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
131 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
132 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
133 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
134 inline RuleSummary& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
135 inline RuleSummary& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
137
139
142 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
143 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
144 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
145 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
146 inline RuleSummary& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
147 inline RuleSummary& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
149 private:
150
151 Aws::String m_name;
152 bool m_nameHasBeenSet = false;
153
154 Aws::String m_ruleId;
155 bool m_ruleIdHasBeenSet = false;
156
157 Aws::String m_ruleArn;
158 bool m_ruleArnHasBeenSet = false;
159
160 EventSourceName m_eventSourceName;
161 bool m_eventSourceNameHasBeenSet = false;
162
163 RulePublishStatus m_publishStatus;
164 bool m_publishStatusHasBeenSet = false;
165
166 Aws::Vector<ActionSummary> m_actionSummaries;
167 bool m_actionSummariesHasBeenSet = false;
168
169 Aws::Utils::DateTime m_createdTime;
170 bool m_createdTimeHasBeenSet = false;
171
172 Aws::Utils::DateTime m_lastUpdatedTime;
173 bool m_lastUpdatedTimeHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace Connect
178} // namespace Aws
void SetRuleId(const Aws::String &value)
Definition RuleSummary.h:66
void SetRuleId(Aws::String &&value)
Definition RuleSummary.h:67
void SetRuleId(const char *value)
Definition RuleSummary.h:68
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedTime(const Aws::Utils::DateTime &value)
void SetRuleArn(Aws::String &&value)
Definition RuleSummary.h:81
AWS_CONNECT_API RuleSummary(Aws::Utils::Json::JsonView jsonValue)
RuleSummary & WithRuleId(const Aws::String &value)
Definition RuleSummary.h:69
RuleSummary & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
void SetName(const char *value)
Definition RuleSummary.h:54
void SetCreatedTime(Aws::Utils::DateTime &&value)
RuleSummary & WithRuleArn(const Aws::String &value)
Definition RuleSummary.h:83
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
RuleSummary & AddActionSummaries(ActionSummary &&value)
RuleSummary & WithPublishStatus(RulePublishStatus &&value)
RuleSummary & WithEventSourceName(const EventSourceName &value)
Definition RuleSummary.h:96
void SetPublishStatus(const RulePublishStatus &value)
RuleSummary & WithEventSourceName(EventSourceName &&value)
Definition RuleSummary.h:97
const Aws::String & GetRuleArn() const
Definition RuleSummary.h:78
RuleSummary & WithActionSummaries(Aws::Vector< ActionSummary > &&value)
void SetEventSourceName(const EventSourceName &value)
Definition RuleSummary.h:94
RuleSummary & WithActionSummaries(const Aws::Vector< ActionSummary > &value)
RuleSummary & AddActionSummaries(const ActionSummary &value)
RuleSummary & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
void SetEventSourceName(EventSourceName &&value)
Definition RuleSummary.h:95
void SetRuleArn(const Aws::String &value)
Definition RuleSummary.h:80
RuleSummary & WithRuleArn(const char *value)
Definition RuleSummary.h:85
RuleSummary & WithName(Aws::String &&value)
Definition RuleSummary.h:56
RuleSummary & WithRuleArn(Aws::String &&value)
Definition RuleSummary.h:84
const Aws::Utils::DateTime & GetCreatedTime() const
RuleSummary & WithName(const char *value)
Definition RuleSummary.h:57
const Aws::String & GetName() const
Definition RuleSummary.h:50
RuleSummary & WithCreatedTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
RuleSummary & WithCreatedTime(const Aws::Utils::DateTime &value)
void SetPublishStatus(RulePublishStatus &&value)
void SetName(const Aws::String &value)
Definition RuleSummary.h:52
void SetActionSummaries(Aws::Vector< ActionSummary > &&value)
RuleSummary & WithRuleId(const char *value)
Definition RuleSummary.h:71
const RulePublishStatus & GetPublishStatus() const
const EventSourceName & GetEventSourceName() const
Definition RuleSummary.h:92
RuleSummary & WithRuleId(Aws::String &&value)
Definition RuleSummary.h:70
void SetRuleArn(const char *value)
Definition RuleSummary.h:82
AWS_CONNECT_API RuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ActionSummary > & GetActionSummaries() const
void SetActionSummaries(const Aws::Vector< ActionSummary > &value)
const Aws::String & GetRuleId() const
Definition RuleSummary.h:64
RuleSummary & WithName(const Aws::String &value)
Definition RuleSummary.h:55
RuleSummary & WithPublishStatus(const RulePublishStatus &value)
void SetName(Aws::String &&value)
Definition RuleSummary.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue