AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SipRule.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/chime/model/SipRuleTriggerType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/chime/model/SipRuleTargetApplication.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Chime
26{
27namespace Model
28{
29
36 class SipRule
37 {
38 public:
39 AWS_CHIME_API SipRule();
40 AWS_CHIME_API SipRule(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CHIME_API SipRule& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetSipRuleId() const{ return m_sipRuleId; }
50 inline bool SipRuleIdHasBeenSet() const { return m_sipRuleIdHasBeenSet; }
51 inline void SetSipRuleId(const Aws::String& value) { m_sipRuleIdHasBeenSet = true; m_sipRuleId = value; }
52 inline void SetSipRuleId(Aws::String&& value) { m_sipRuleIdHasBeenSet = true; m_sipRuleId = std::move(value); }
53 inline void SetSipRuleId(const char* value) { m_sipRuleIdHasBeenSet = true; m_sipRuleId.assign(value); }
54 inline SipRule& WithSipRuleId(const Aws::String& value) { SetSipRuleId(value); return *this;}
55 inline SipRule& WithSipRuleId(Aws::String&& value) { SetSipRuleId(std::move(value)); return *this;}
56 inline SipRule& WithSipRuleId(const char* value) { SetSipRuleId(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline SipRule& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline SipRule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline SipRule& WithName(const char* value) { SetName(value); return *this;}
72
74
78 inline bool GetDisabled() const{ return m_disabled; }
79 inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; }
80 inline void SetDisabled(bool value) { m_disabledHasBeenSet = true; m_disabled = value; }
81 inline SipRule& WithDisabled(bool value) { SetDisabled(value); return *this;}
83
85
89 inline const SipRuleTriggerType& GetTriggerType() const{ return m_triggerType; }
90 inline bool TriggerTypeHasBeenSet() const { return m_triggerTypeHasBeenSet; }
91 inline void SetTriggerType(const SipRuleTriggerType& value) { m_triggerTypeHasBeenSet = true; m_triggerType = value; }
92 inline void SetTriggerType(SipRuleTriggerType&& value) { m_triggerTypeHasBeenSet = true; m_triggerType = std::move(value); }
93 inline SipRule& WithTriggerType(const SipRuleTriggerType& value) { SetTriggerType(value); return *this;}
94 inline SipRule& WithTriggerType(SipRuleTriggerType&& value) { SetTriggerType(std::move(value)); return *this;}
96
98
106 inline const Aws::String& GetTriggerValue() const{ return m_triggerValue; }
107 inline bool TriggerValueHasBeenSet() const { return m_triggerValueHasBeenSet; }
108 inline void SetTriggerValue(const Aws::String& value) { m_triggerValueHasBeenSet = true; m_triggerValue = value; }
109 inline void SetTriggerValue(Aws::String&& value) { m_triggerValueHasBeenSet = true; m_triggerValue = std::move(value); }
110 inline void SetTriggerValue(const char* value) { m_triggerValueHasBeenSet = true; m_triggerValue.assign(value); }
111 inline SipRule& WithTriggerValue(const Aws::String& value) { SetTriggerValue(value); return *this;}
112 inline SipRule& WithTriggerValue(Aws::String&& value) { SetTriggerValue(std::move(value)); return *this;}
113 inline SipRule& WithTriggerValue(const char* value) { SetTriggerValue(value); return *this;}
115
117
122 inline const Aws::Vector<SipRuleTargetApplication>& GetTargetApplications() const{ return m_targetApplications; }
123 inline bool TargetApplicationsHasBeenSet() const { return m_targetApplicationsHasBeenSet; }
124 inline void SetTargetApplications(const Aws::Vector<SipRuleTargetApplication>& value) { m_targetApplicationsHasBeenSet = true; m_targetApplications = value; }
125 inline void SetTargetApplications(Aws::Vector<SipRuleTargetApplication>&& value) { m_targetApplicationsHasBeenSet = true; m_targetApplications = std::move(value); }
128 inline SipRule& AddTargetApplications(const SipRuleTargetApplication& value) { m_targetApplicationsHasBeenSet = true; m_targetApplications.push_back(value); return *this; }
129 inline SipRule& AddTargetApplications(SipRuleTargetApplication&& value) { m_targetApplicationsHasBeenSet = true; m_targetApplications.push_back(std::move(value)); return *this; }
131
133
136 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
137 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
138 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
139 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
140 inline SipRule& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
141 inline SipRule& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
143
145
148 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const{ return m_updatedTimestamp; }
149 inline bool UpdatedTimestampHasBeenSet() const { return m_updatedTimestampHasBeenSet; }
150 inline void SetUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = value; }
151 inline void SetUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::move(value); }
152 inline SipRule& WithUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetUpdatedTimestamp(value); return *this;}
153 inline SipRule& WithUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetUpdatedTimestamp(std::move(value)); return *this;}
155 private:
156
157 Aws::String m_sipRuleId;
158 bool m_sipRuleIdHasBeenSet = false;
159
160 Aws::String m_name;
161 bool m_nameHasBeenSet = false;
162
163 bool m_disabled;
164 bool m_disabledHasBeenSet = false;
165
166 SipRuleTriggerType m_triggerType;
167 bool m_triggerTypeHasBeenSet = false;
168
169 Aws::String m_triggerValue;
170 bool m_triggerValueHasBeenSet = false;
171
172 Aws::Vector<SipRuleTargetApplication> m_targetApplications;
173 bool m_targetApplicationsHasBeenSet = false;
174
175 Aws::Utils::DateTime m_createdTimestamp;
176 bool m_createdTimestampHasBeenSet = false;
177
178 Aws::Utils::DateTime m_updatedTimestamp;
179 bool m_updatedTimestampHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace Chime
184} // namespace Aws
void SetTriggerType(const SipRuleTriggerType &value)
Definition SipRule.h:91
bool CreatedTimestampHasBeenSet() const
Definition SipRule.h:137
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition SipRule.h:136
SipRule & WithName(Aws::String &&value)
Definition SipRule.h:69
bool UpdatedTimestampHasBeenSet() const
Definition SipRule.h:149
SipRule & AddTargetApplications(const SipRuleTargetApplication &value)
Definition SipRule.h:128
SipRule & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
Definition SipRule.h:140
SipRule & WithName(const Aws::String &value)
Definition SipRule.h:68
void SetName(Aws::String &&value)
Definition SipRule.h:66
SipRule & WithTargetApplications(const Aws::Vector< SipRuleTargetApplication > &value)
Definition SipRule.h:126
void SetTriggerValue(const char *value)
Definition SipRule.h:110
SipRule & WithDisabled(bool value)
Definition SipRule.h:81
bool GetDisabled() const
Definition SipRule.h:78
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
Definition SipRule.h:148
AWS_CHIME_API SipRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetApplications(Aws::Vector< SipRuleTargetApplication > &&value)
Definition SipRule.h:125
void SetUpdatedTimestamp(Aws::Utils::DateTime &&value)
Definition SipRule.h:151
SipRule & AddTargetApplications(SipRuleTargetApplication &&value)
Definition SipRule.h:129
const Aws::String & GetSipRuleId() const
Definition SipRule.h:49
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
Definition SipRule.h:138
SipRule & WithSipRuleId(const char *value)
Definition SipRule.h:56
SipRule & WithSipRuleId(Aws::String &&value)
Definition SipRule.h:55
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDisabled(bool value)
Definition SipRule.h:80
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
Definition SipRule.h:139
SipRule & WithSipRuleId(const Aws::String &value)
Definition SipRule.h:54
SipRule & WithName(const char *value)
Definition SipRule.h:70
void SetTriggerType(SipRuleTriggerType &&value)
Definition SipRule.h:92
SipRule & WithUpdatedTimestamp(Aws::Utils::DateTime &&value)
Definition SipRule.h:153
void SetSipRuleId(const char *value)
Definition SipRule.h:53
AWS_CHIME_API SipRule(Aws::Utils::Json::JsonView jsonValue)
void SetUpdatedTimestamp(const Aws::Utils::DateTime &value)
Definition SipRule.h:150
const Aws::Vector< SipRuleTargetApplication > & GetTargetApplications() const
Definition SipRule.h:122
SipRule & WithTriggerType(const SipRuleTriggerType &value)
Definition SipRule.h:93
void SetTriggerValue(const Aws::String &value)
Definition SipRule.h:108
bool TargetApplicationsHasBeenSet() const
Definition SipRule.h:123
SipRule & WithTriggerValue(const Aws::String &value)
Definition SipRule.h:111
void SetTargetApplications(const Aws::Vector< SipRuleTargetApplication > &value)
Definition SipRule.h:124
const Aws::String & GetTriggerValue() const
Definition SipRule.h:106
bool NameHasBeenSet() const
Definition SipRule.h:64
void SetSipRuleId(const Aws::String &value)
Definition SipRule.h:51
SipRule & WithUpdatedTimestamp(const Aws::Utils::DateTime &value)
Definition SipRule.h:152
bool TriggerTypeHasBeenSet() const
Definition SipRule.h:90
void SetTriggerValue(Aws::String &&value)
Definition SipRule.h:109
void SetSipRuleId(Aws::String &&value)
Definition SipRule.h:52
SipRule & WithTargetApplications(Aws::Vector< SipRuleTargetApplication > &&value)
Definition SipRule.h:127
void SetName(const char *value)
Definition SipRule.h:67
void SetName(const Aws::String &value)
Definition SipRule.h:65
SipRule & WithTriggerValue(Aws::String &&value)
Definition SipRule.h:112
SipRule & WithTriggerValue(const char *value)
Definition SipRule.h:113
SipRule & WithTriggerType(SipRuleTriggerType &&value)
Definition SipRule.h:94
const Aws::String & GetName() const
Definition SipRule.h:63
const SipRuleTriggerType & GetTriggerType() const
Definition SipRule.h:89
SipRule & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
Definition SipRule.h:141
bool DisabledHasBeenSet() const
Definition SipRule.h:79
bool SipRuleIdHasBeenSet() const
Definition SipRule.h:50
bool TriggerValueHasBeenSet() const
Definition SipRule.h:107
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue