AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Subnet.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/dax/DAX_EXPORTS.h>
10#include <aws/dax/model/NetworkType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DAX {
22namespace Model {
23
31class Subnet {
32 public:
33 AWS_DAX_API Subnet() = default;
34 AWS_DAX_API Subnet(Aws::Utils::Json::JsonView jsonValue);
37
39
42 inline const Aws::String& GetSubnetIdentifier() const { return m_subnetIdentifier; }
43 inline bool SubnetIdentifierHasBeenSet() const { return m_subnetIdentifierHasBeenSet; }
44 template <typename SubnetIdentifierT = Aws::String>
45 void SetSubnetIdentifier(SubnetIdentifierT&& value) {
46 m_subnetIdentifierHasBeenSet = true;
47 m_subnetIdentifier = std::forward<SubnetIdentifierT>(value);
48 }
49 template <typename SubnetIdentifierT = Aws::String>
50 Subnet& WithSubnetIdentifier(SubnetIdentifierT&& value) {
51 SetSubnetIdentifier(std::forward<SubnetIdentifierT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetSubnetAvailabilityZone() const { return m_subnetAvailabilityZone; }
61 inline bool SubnetAvailabilityZoneHasBeenSet() const { return m_subnetAvailabilityZoneHasBeenSet; }
62 template <typename SubnetAvailabilityZoneT = Aws::String>
63 void SetSubnetAvailabilityZone(SubnetAvailabilityZoneT&& value) {
64 m_subnetAvailabilityZoneHasBeenSet = true;
65 m_subnetAvailabilityZone = std::forward<SubnetAvailabilityZoneT>(value);
66 }
67 template <typename SubnetAvailabilityZoneT = Aws::String>
68 Subnet& WithSubnetAvailabilityZone(SubnetAvailabilityZoneT&& value) {
69 SetSubnetAvailabilityZone(std::forward<SubnetAvailabilityZoneT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::Vector<NetworkType>& GetSupportedNetworkTypes() const { return m_supportedNetworkTypes; }
81 inline bool SupportedNetworkTypesHasBeenSet() const { return m_supportedNetworkTypesHasBeenSet; }
82 template <typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
83 void SetSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
84 m_supportedNetworkTypesHasBeenSet = true;
85 m_supportedNetworkTypes = std::forward<SupportedNetworkTypesT>(value);
86 }
87 template <typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
88 Subnet& WithSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
89 SetSupportedNetworkTypes(std::forward<SupportedNetworkTypesT>(value));
90 return *this;
91 }
93 m_supportedNetworkTypesHasBeenSet = true;
94 m_supportedNetworkTypes.push_back(value);
95 return *this;
96 }
98 private:
99 Aws::String m_subnetIdentifier;
100
101 Aws::String m_subnetAvailabilityZone;
102
103 Aws::Vector<NetworkType> m_supportedNetworkTypes;
104 bool m_subnetIdentifierHasBeenSet = false;
105 bool m_subnetAvailabilityZoneHasBeenSet = false;
106 bool m_supportedNetworkTypesHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace DAX
111} // namespace Aws
const Aws::Vector< NetworkType > & GetSupportedNetworkTypes() const
Definition Subnet.h:80
AWS_DAX_API Subnet(Aws::Utils::Json::JsonView jsonValue)
void SetSupportedNetworkTypes(SupportedNetworkTypesT &&value)
Definition Subnet.h:83
bool SubnetAvailabilityZoneHasBeenSet() const
Definition Subnet.h:61
void SetSubnetIdentifier(SubnetIdentifierT &&value)
Definition Subnet.h:45
AWS_DAX_API Aws::Utils::Json::JsonValue Jsonize() const
Subnet & WithSubnetIdentifier(SubnetIdentifierT &&value)
Definition Subnet.h:50
void SetSubnetAvailabilityZone(SubnetAvailabilityZoneT &&value)
Definition Subnet.h:63
Subnet & WithSupportedNetworkTypes(SupportedNetworkTypesT &&value)
Definition Subnet.h:88
bool SupportedNetworkTypesHasBeenSet() const
Definition Subnet.h:81
const Aws::String & GetSubnetAvailabilityZone() const
Definition Subnet.h:60
AWS_DAX_API Subnet & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSubnetIdentifier() const
Definition Subnet.h:42
AWS_DAX_API Subnet()=default
Subnet & AddSupportedNetworkTypes(NetworkType value)
Definition Subnet.h:92
Subnet & WithSubnetAvailabilityZone(SubnetAvailabilityZoneT &&value)
Definition Subnet.h:68
bool SubnetIdentifierHasBeenSet() const
Definition Subnet.h:43
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue