AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ByoipCidr.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/globalaccelerator/model/ByoipCidrState.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/globalaccelerator/model/ByoipCidrEvent.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GlobalAccelerator
25{
26namespace Model
27{
28
66 {
67 public:
68 AWS_GLOBALACCELERATOR_API ByoipCidr() = default;
69 AWS_GLOBALACCELERATOR_API ByoipCidr(Aws::Utils::Json::JsonView jsonValue);
70 AWS_GLOBALACCELERATOR_API ByoipCidr& operator=(Aws::Utils::Json::JsonView jsonValue);
71 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
72
73
75
80 inline const Aws::String& GetCidr() const { return m_cidr; }
81 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
82 template<typename CidrT = Aws::String>
83 void SetCidr(CidrT&& value) { m_cidrHasBeenSet = true; m_cidr = std::forward<CidrT>(value); }
84 template<typename CidrT = Aws::String>
85 ByoipCidr& WithCidr(CidrT&& value) { SetCidr(std::forward<CidrT>(value)); return *this;}
87
89
92 inline ByoipCidrState GetState() const { return m_state; }
93 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
94 inline void SetState(ByoipCidrState value) { m_stateHasBeenSet = true; m_state = value; }
95 inline ByoipCidr& WithState(ByoipCidrState value) { SetState(value); return *this;}
97
99
103 inline const Aws::Vector<ByoipCidrEvent>& GetEvents() const { return m_events; }
104 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
105 template<typename EventsT = Aws::Vector<ByoipCidrEvent>>
106 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
107 template<typename EventsT = Aws::Vector<ByoipCidrEvent>>
108 ByoipCidr& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
109 template<typename EventsT = ByoipCidrEvent>
110 ByoipCidr& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
112 private:
113
114 Aws::String m_cidr;
115 bool m_cidrHasBeenSet = false;
116
118 bool m_stateHasBeenSet = false;
119
121 bool m_eventsHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace GlobalAccelerator
126} // namespace Aws
ByoipCidr & WithEvents(EventsT &&value)
Definition ByoipCidr.h:108
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:103
AWS_GLOBALACCELERATOR_API ByoipCidr()=default
AWS_GLOBALACCELERATOR_API ByoipCidr & operator=(Aws::Utils::Json::JsonView jsonValue)
ByoipCidr & WithCidr(CidrT &&value)
Definition ByoipCidr.h:85
ByoipCidr & AddEvents(EventsT &&value)
Definition ByoipCidr.h:110
void SetState(ByoipCidrState value)
Definition ByoipCidr.h:94
ByoipCidr & WithState(ByoipCidrState value)
Definition ByoipCidr.h:95
const Aws::String & GetCidr() const
Definition ByoipCidr.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