AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
ByoipCidr.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
10#include <aws/globalaccelerator/model/ByoipCidrEvent.h>
11#include <aws/globalaccelerator/model/ByoipCidrState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GlobalAccelerator {
23namespace Model {
24
61class ByoipCidr {
62 public:
63 AWS_GLOBALACCELERATOR_API ByoipCidr() = default;
64 AWS_GLOBALACCELERATOR_API ByoipCidr(Aws::Utils::Json::JsonView jsonValue);
65 AWS_GLOBALACCELERATOR_API ByoipCidr& operator=(Aws::Utils::Json::JsonView jsonValue);
66 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
67
69
74 inline const Aws::String& GetCidr() const { return m_cidr; }
75 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
76 template <typename CidrT = Aws::String>
77 void SetCidr(CidrT&& value) {
78 m_cidrHasBeenSet = true;
79 m_cidr = std::forward<CidrT>(value);
80 }
81 template <typename CidrT = Aws::String>
82 ByoipCidr& WithCidr(CidrT&& value) {
83 SetCidr(std::forward<CidrT>(value));
84 return *this;
85 }
87
89
92 inline ByoipCidrState GetState() const { return m_state; }
93 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
94 inline void SetState(ByoipCidrState value) {
95 m_stateHasBeenSet = true;
96 m_state = value;
97 }
99 SetState(value);
100 return *this;
101 }
103
105
109 inline const Aws::Vector<ByoipCidrEvent>& GetEvents() const { return m_events; }
110 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
111 template <typename EventsT = Aws::Vector<ByoipCidrEvent>>
112 void SetEvents(EventsT&& value) {
113 m_eventsHasBeenSet = true;
114 m_events = std::forward<EventsT>(value);
115 }
116 template <typename EventsT = Aws::Vector<ByoipCidrEvent>>
117 ByoipCidr& WithEvents(EventsT&& value) {
118 SetEvents(std::forward<EventsT>(value));
119 return *this;
120 }
121 template <typename EventsT = ByoipCidrEvent>
122 ByoipCidr& AddEvents(EventsT&& value) {
123 m_eventsHasBeenSet = true;
124 m_events.emplace_back(std::forward<EventsT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_cidr;
130
132
134 bool m_cidrHasBeenSet = false;
135 bool m_stateHasBeenSet = false;
136 bool m_eventsHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace GlobalAccelerator
141} // namespace Aws
ByoipCidr & WithEvents(EventsT &&value)
Definition ByoipCidr.h:117
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLOBALACCELERATOR_API ByoipCidr(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ByoipCidrEvent > & GetEvents() const
Definition ByoipCidr.h:109
AWS_GLOBALACCELERATOR_API ByoipCidr()=default
AWS_GLOBALACCELERATOR_API ByoipCidr & operator=(Aws::Utils::Json::JsonView jsonValue)
ByoipCidr & WithCidr(CidrT &&value)
Definition ByoipCidr.h:82
ByoipCidr & AddEvents(EventsT &&value)
Definition ByoipCidr.h:122
void SetState(ByoipCidrState value)
Definition ByoipCidr.h:94
ByoipCidr & WithState(ByoipCidrState value)
Definition ByoipCidr.h:98
const Aws::String & GetCidr() const
Definition ByoipCidr.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue