AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
43 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
44 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
45 template <typename SubnetIdT = Aws::String>
46 void SetSubnetId(SubnetIdT&& value) {
47 m_subnetIdHasBeenSet = true;
48 m_subnetId = std::forward<SubnetIdT>(value);
49 }
50 template <typename SubnetIdT = Aws::String>
51 IpAddressRequest& WithSubnetId(SubnetIdT&& value) {
52 SetSubnetId(std::forward<SubnetIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetIp() const { return m_ip; }
62 inline bool IpHasBeenSet() const { return m_ipHasBeenSet; }
63 template <typename IpT = Aws::String>
64 void SetIp(IpT&& value) {
65 m_ipHasBeenSet = true;
66 m_ip = std::forward<IpT>(value);
67 }
68 template <typename IpT = Aws::String>
69 IpAddressRequest& WithIp(IpT&& value) {
70 SetIp(std::forward<IpT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetIpv6() const { return m_ipv6; }
80 inline bool Ipv6HasBeenSet() const { return m_ipv6HasBeenSet; }
81 template <typename Ipv6T = Aws::String>
82 void SetIpv6(Ipv6T&& value) {
83 m_ipv6HasBeenSet = true;
84 m_ipv6 = std::forward<Ipv6T>(value);
85 }
86 template <typename Ipv6T = Aws::String>
87 IpAddressRequest& WithIpv6(Ipv6T&& value) {
88 SetIpv6(std::forward<Ipv6T>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_subnetId;
94
95 Aws::String m_ip;
96
97 Aws::String m_ipv6;
98 bool m_subnetIdHasBeenSet = false;
99 bool m_ipHasBeenSet = false;
100 bool m_ipv6HasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Route53Resolver
105} // 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