AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
SubnetAndZone.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/elb-proxy/ELBProxy_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace ELBProxy {
20namespace Model {
21
28 public:
29 AWS_ELBPROXY_API SubnetAndZone() = default;
30 AWS_ELBPROXY_API SubnetAndZone(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_ELBPROXY_API SubnetAndZone& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_ELBPROXY_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
38 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
39 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
40 template <typename SubnetIdT = Aws::String>
41 void SetSubnetId(SubnetIdT&& value) {
42 m_subnetIdHasBeenSet = true;
43 m_subnetId = std::forward<SubnetIdT>(value);
44 }
45 template <typename SubnetIdT = Aws::String>
46 SubnetAndZone& WithSubnetId(SubnetIdT&& value) {
47 SetSubnetId(std::forward<SubnetIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetZoneId() const { return m_zoneId; }
57 inline bool ZoneIdHasBeenSet() const { return m_zoneIdHasBeenSet; }
58 template <typename ZoneIdT = Aws::String>
59 void SetZoneId(ZoneIdT&& value) {
60 m_zoneIdHasBeenSet = true;
61 m_zoneId = std::forward<ZoneIdT>(value);
62 }
63 template <typename ZoneIdT = Aws::String>
64 SubnetAndZone& WithZoneId(ZoneIdT&& value) {
65 SetZoneId(std::forward<ZoneIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetZoneName() const { return m_zoneName; }
75 inline bool ZoneNameHasBeenSet() const { return m_zoneNameHasBeenSet; }
76 template <typename ZoneNameT = Aws::String>
77 void SetZoneName(ZoneNameT&& value) {
78 m_zoneNameHasBeenSet = true;
79 m_zoneName = std::forward<ZoneNameT>(value);
80 }
81 template <typename ZoneNameT = Aws::String>
82 SubnetAndZone& WithZoneName(ZoneNameT&& value) {
83 SetZoneName(std::forward<ZoneNameT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_subnetId;
89
90 Aws::String m_zoneId;
91
92 Aws::String m_zoneName;
93 bool m_subnetIdHasBeenSet = false;
94 bool m_zoneIdHasBeenSet = false;
95 bool m_zoneNameHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace ELBProxy
100} // namespace Aws
const Aws::String & GetZoneId() const
SubnetAndZone & WithZoneId(ZoneIdT &&value)
SubnetAndZone & WithZoneName(ZoneNameT &&value)
AWS_ELBPROXY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetSubnetId(SubnetIdT &&value)
AWS_ELBPROXY_API SubnetAndZone & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetZoneName(ZoneNameT &&value)
SubnetAndZone & WithSubnetId(SubnetIdT &&value)
AWS_ELBPROXY_API SubnetAndZone(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetSubnetId() const
AWS_ELBPROXY_API SubnetAndZone()=default
const Aws::String & GetZoneName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String