AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
IpSet.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/IpAddressDetail.h>
11#include <aws/globalaccelerator/model/IpAddressFamily.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
31class IpSet {
32 public:
33 AWS_GLOBALACCELERATOR_API IpSet() = default;
34 AWS_GLOBALACCELERATOR_API IpSet(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GLOBALACCELERATOR_API IpSet& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<Aws::String>& GetIpAddresses() const { return m_ipAddresses; }
44 inline bool IpAddressesHasBeenSet() const { return m_ipAddressesHasBeenSet; }
45 template <typename IpAddressesT = Aws::Vector<Aws::String>>
46 void SetIpAddresses(IpAddressesT&& value) {
47 m_ipAddressesHasBeenSet = true;
48 m_ipAddresses = std::forward<IpAddressesT>(value);
49 }
50 template <typename IpAddressesT = Aws::Vector<Aws::String>>
51 IpSet& WithIpAddresses(IpAddressesT&& value) {
52 SetIpAddresses(std::forward<IpAddressesT>(value));
53 return *this;
54 }
55 template <typename IpAddressesT = Aws::String>
56 IpSet& AddIpAddresses(IpAddressesT&& value) {
57 m_ipAddressesHasBeenSet = true;
58 m_ipAddresses.emplace_back(std::forward<IpAddressesT>(value));
59 return *this;
60 }
62
64
67 inline IpAddressFamily GetIpAddressFamily() const { return m_ipAddressFamily; }
68 inline bool IpAddressFamilyHasBeenSet() const { return m_ipAddressFamilyHasBeenSet; }
70 m_ipAddressFamilyHasBeenSet = true;
71 m_ipAddressFamily = value;
72 }
74 SetIpAddressFamily(value);
75 return *this;
76 }
78
80
85 inline const Aws::Vector<IpAddressDetail>& GetIpAddressDetails() const { return m_ipAddressDetails; }
86 inline bool IpAddressDetailsHasBeenSet() const { return m_ipAddressDetailsHasBeenSet; }
87 template <typename IpAddressDetailsT = Aws::Vector<IpAddressDetail>>
88 void SetIpAddressDetails(IpAddressDetailsT&& value) {
89 m_ipAddressDetailsHasBeenSet = true;
90 m_ipAddressDetails = std::forward<IpAddressDetailsT>(value);
91 }
92 template <typename IpAddressDetailsT = Aws::Vector<IpAddressDetail>>
93 IpSet& WithIpAddressDetails(IpAddressDetailsT&& value) {
94 SetIpAddressDetails(std::forward<IpAddressDetailsT>(value));
95 return *this;
96 }
97 template <typename IpAddressDetailsT = IpAddressDetail>
98 IpSet& AddIpAddressDetails(IpAddressDetailsT&& value) {
99 m_ipAddressDetailsHasBeenSet = true;
100 m_ipAddressDetails.emplace_back(std::forward<IpAddressDetailsT>(value));
101 return *this;
102 }
104 private:
105 Aws::Vector<Aws::String> m_ipAddresses;
106
107 IpAddressFamily m_ipAddressFamily{IpAddressFamily::NOT_SET};
108
109 Aws::Vector<IpAddressDetail> m_ipAddressDetails;
110 bool m_ipAddressesHasBeenSet = false;
111 bool m_ipAddressFamilyHasBeenSet = false;
112 bool m_ipAddressDetailsHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace GlobalAccelerator
117} // namespace Aws
IpSet & WithIpAddresses(IpAddressesT &&value)
Definition IpSet.h:51
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIpAddressDetails(IpAddressDetailsT &&value)
Definition IpSet.h:88
AWS_GLOBALACCELERATOR_API IpSet(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API IpSet & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IpAddressDetailsHasBeenSet() const
Definition IpSet.h:86
IpSet & AddIpAddressDetails(IpAddressDetailsT &&value)
Definition IpSet.h:98
IpAddressFamily GetIpAddressFamily() const
Definition IpSet.h:67
void SetIpAddressFamily(IpAddressFamily value)
Definition IpSet.h:69
AWS_GLOBALACCELERATOR_API IpSet()=default
const Aws::Vector< IpAddressDetail > & GetIpAddressDetails() const
Definition IpSet.h:85
IpSet & WithIpAddressDetails(IpAddressDetailsT &&value)
Definition IpSet.h:93
bool IpAddressFamilyHasBeenSet() const
Definition IpSet.h:68
IpSet & WithIpAddressFamily(IpAddressFamily value)
Definition IpSet.h:73
IpSet & AddIpAddresses(IpAddressesT &&value)
Definition IpSet.h:56
const Aws::Vector< Aws::String > & GetIpAddresses() const
Definition IpSet.h:43
void SetIpAddresses(IpAddressesT &&value)
Definition IpSet.h:46
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue