AWS SDK for C++

AWS SDK for C++ Version 1.11.903

Loading...
Searching...
No Matches
IpAddressRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Route53Resolver {
20namespace Model {
21
33 public:
34 AWS_ROUTE53RESOLVER_API IpAddressRequest() = default;
35 AWS_ROUTE53RESOLVER_API IpAddressRequest(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ROUTE53RESOLVER_API IpAddressRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
55 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
56 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
57 template <typename SubnetIdT = Aws::String>
58 void SetSubnetId(SubnetIdT&& value) {
59 m_subnetIdHasBeenSet = true;
60 m_subnetId = std::forward<SubnetIdT>(value);
61 }
62 template <typename SubnetIdT = Aws::String>
63 IpAddressRequest& WithSubnetId(SubnetIdT&& value) {
64 SetSubnetId(std::forward<SubnetIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetIp() const { return m_ip; }
74 inline bool IpHasBeenSet() const { return m_ipHasBeenSet; }
75 template <typename IpT = Aws::String>
76 void SetIp(IpT&& value) {
77 m_ipHasBeenSet = true;
78 m_ip = std::forward<IpT>(value);
79 }
80 template <typename IpT = Aws::String>
81 IpAddressRequest& WithIp(IpT&& value) {
82 SetIp(std::forward<IpT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetIpv6() const { return m_ipv6; }
92 inline bool Ipv6HasBeenSet() const { return m_ipv6HasBeenSet; }
93 template <typename Ipv6T = Aws::String>
94 void SetIpv6(Ipv6T&& value) {
95 m_ipv6HasBeenSet = true;
96 m_ipv6 = std::forward<Ipv6T>(value);
97 }
98 template <typename Ipv6T = Aws::String>
99 IpAddressRequest& WithIpv6(Ipv6T&& value) {
100 SetIpv6(std::forward<Ipv6T>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_subnetId;
106
107 Aws::String m_ip;
108
109 Aws::String m_ipv6;
110 bool m_subnetIdHasBeenSet = false;
111 bool m_ipHasBeenSet = false;
112 bool m_ipv6HasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace Route53Resolver
117} // namespace Aws
AWS_ROUTE53RESOLVER_API IpAddressRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53RESOLVER_API IpAddressRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_ROUTE53RESOLVER_API IpAddressRequest()=default
IpAddressRequest & WithSubnetId(SubnetIdT &&value)
IpAddressRequest & WithIpv6(Ipv6T &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue