AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Termination.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Chime
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CHIME_API Termination();
37 AWS_CHIME_API Termination(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline int GetCpsLimit() const{ return m_cpsLimit; }
48 inline bool CpsLimitHasBeenSet() const { return m_cpsLimitHasBeenSet; }
49 inline void SetCpsLimit(int value) { m_cpsLimitHasBeenSet = true; m_cpsLimit = value; }
50 inline Termination& WithCpsLimit(int value) { SetCpsLimit(value); return *this;}
52
54
57 inline const Aws::String& GetDefaultPhoneNumber() const{ return m_defaultPhoneNumber; }
58 inline bool DefaultPhoneNumberHasBeenSet() const { return m_defaultPhoneNumberHasBeenSet; }
59 inline void SetDefaultPhoneNumber(const Aws::String& value) { m_defaultPhoneNumberHasBeenSet = true; m_defaultPhoneNumber = value; }
60 inline void SetDefaultPhoneNumber(Aws::String&& value) { m_defaultPhoneNumberHasBeenSet = true; m_defaultPhoneNumber = std::move(value); }
61 inline void SetDefaultPhoneNumber(const char* value) { m_defaultPhoneNumberHasBeenSet = true; m_defaultPhoneNumber.assign(value); }
62 inline Termination& WithDefaultPhoneNumber(const Aws::String& value) { SetDefaultPhoneNumber(value); return *this;}
63 inline Termination& WithDefaultPhoneNumber(Aws::String&& value) { SetDefaultPhoneNumber(std::move(value)); return *this;}
64 inline Termination& WithDefaultPhoneNumber(const char* value) { SetDefaultPhoneNumber(value); return *this;}
66
68
72 inline const Aws::Vector<Aws::String>& GetCallingRegions() const{ return m_callingRegions; }
73 inline bool CallingRegionsHasBeenSet() const { return m_callingRegionsHasBeenSet; }
74 inline void SetCallingRegions(const Aws::Vector<Aws::String>& value) { m_callingRegionsHasBeenSet = true; m_callingRegions = value; }
75 inline void SetCallingRegions(Aws::Vector<Aws::String>&& value) { m_callingRegionsHasBeenSet = true; m_callingRegions = std::move(value); }
76 inline Termination& WithCallingRegions(const Aws::Vector<Aws::String>& value) { SetCallingRegions(value); return *this;}
77 inline Termination& WithCallingRegions(Aws::Vector<Aws::String>&& value) { SetCallingRegions(std::move(value)); return *this;}
78 inline Termination& AddCallingRegions(const Aws::String& value) { m_callingRegionsHasBeenSet = true; m_callingRegions.push_back(value); return *this; }
79 inline Termination& AddCallingRegions(Aws::String&& value) { m_callingRegionsHasBeenSet = true; m_callingRegions.push_back(std::move(value)); return *this; }
80 inline Termination& AddCallingRegions(const char* value) { m_callingRegionsHasBeenSet = true; m_callingRegions.push_back(value); return *this; }
82
84
87 inline const Aws::Vector<Aws::String>& GetCidrAllowedList() const{ return m_cidrAllowedList; }
88 inline bool CidrAllowedListHasBeenSet() const { return m_cidrAllowedListHasBeenSet; }
89 inline void SetCidrAllowedList(const Aws::Vector<Aws::String>& value) { m_cidrAllowedListHasBeenSet = true; m_cidrAllowedList = value; }
90 inline void SetCidrAllowedList(Aws::Vector<Aws::String>&& value) { m_cidrAllowedListHasBeenSet = true; m_cidrAllowedList = std::move(value); }
91 inline Termination& WithCidrAllowedList(const Aws::Vector<Aws::String>& value) { SetCidrAllowedList(value); return *this;}
92 inline Termination& WithCidrAllowedList(Aws::Vector<Aws::String>&& value) { SetCidrAllowedList(std::move(value)); return *this;}
93 inline Termination& AddCidrAllowedList(const Aws::String& value) { m_cidrAllowedListHasBeenSet = true; m_cidrAllowedList.push_back(value); return *this; }
94 inline Termination& AddCidrAllowedList(Aws::String&& value) { m_cidrAllowedListHasBeenSet = true; m_cidrAllowedList.push_back(std::move(value)); return *this; }
95 inline Termination& AddCidrAllowedList(const char* value) { m_cidrAllowedListHasBeenSet = true; m_cidrAllowedList.push_back(value); return *this; }
97
99
102 inline bool GetDisabled() const{ return m_disabled; }
103 inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; }
104 inline void SetDisabled(bool value) { m_disabledHasBeenSet = true; m_disabled = value; }
105 inline Termination& WithDisabled(bool value) { SetDisabled(value); return *this;}
107 private:
108
109 int m_cpsLimit;
110 bool m_cpsLimitHasBeenSet = false;
111
112 Aws::String m_defaultPhoneNumber;
113 bool m_defaultPhoneNumberHasBeenSet = false;
114
115 Aws::Vector<Aws::String> m_callingRegions;
116 bool m_callingRegionsHasBeenSet = false;
117
118 Aws::Vector<Aws::String> m_cidrAllowedList;
119 bool m_cidrAllowedListHasBeenSet = false;
120
121 bool m_disabled;
122 bool m_disabledHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Chime
127} // namespace Aws
Termination & AddCidrAllowedList(const Aws::String &value)
Definition Termination.h:93
Termination & AddCidrAllowedList(Aws::String &&value)
Definition Termination.h:94
Termination & WithCpsLimit(int value)
Definition Termination.h:50
void SetCidrAllowedList(const Aws::Vector< Aws::String > &value)
Definition Termination.h:89
void SetDefaultPhoneNumber(const Aws::String &value)
Definition Termination.h:59
Termination & AddCallingRegions(Aws::String &&value)
Definition Termination.h:79
void SetDefaultPhoneNumber(const char *value)
Definition Termination.h:61
void SetDefaultPhoneNumber(Aws::String &&value)
Definition Termination.h:60
const Aws::Vector< Aws::String > & GetCallingRegions() const
Definition Termination.h:72
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
Termination & AddCallingRegions(const Aws::String &value)
Definition Termination.h:78
void SetCallingRegions(const Aws::Vector< Aws::String > &value)
Definition Termination.h:74
AWS_CHIME_API Termination & operator=(Aws::Utils::Json::JsonView jsonValue)
Termination & WithDefaultPhoneNumber(const char *value)
Definition Termination.h:64
bool DefaultPhoneNumberHasBeenSet() const
Definition Termination.h:58
const Aws::Vector< Aws::String > & GetCidrAllowedList() const
Definition Termination.h:87
bool CallingRegionsHasBeenSet() const
Definition Termination.h:73
Termination & WithDefaultPhoneNumber(const Aws::String &value)
Definition Termination.h:62
Termination & WithDefaultPhoneNumber(Aws::String &&value)
Definition Termination.h:63
Termination & WithCallingRegions(Aws::Vector< Aws::String > &&value)
Definition Termination.h:77
AWS_CHIME_API Termination(Aws::Utils::Json::JsonView jsonValue)
void SetCidrAllowedList(Aws::Vector< Aws::String > &&value)
Definition Termination.h:90
const Aws::String & GetDefaultPhoneNumber() const
Definition Termination.h:57
Termination & WithCidrAllowedList(const Aws::Vector< Aws::String > &value)
Definition Termination.h:91
bool CidrAllowedListHasBeenSet() const
Definition Termination.h:88
Termination & AddCidrAllowedList(const char *value)
Definition Termination.h:95
Termination & WithCidrAllowedList(Aws::Vector< Aws::String > &&value)
Definition Termination.h:92
void SetCallingRegions(Aws::Vector< Aws::String > &&value)
Definition Termination.h:75
Termination & WithDisabled(bool value)
Termination & WithCallingRegions(const Aws::Vector< Aws::String > &value)
Definition Termination.h:76
Termination & AddCallingRegions(const char *value)
Definition Termination.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue