AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TargetDescription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElasticLoadBalancingv2 {
20namespace Model {
21
28 public:
29 AWS_ELASTICLOADBALANCINGV2_API TargetDescription() = default;
30 AWS_ELASTICLOADBALANCINGV2_API TargetDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_ELASTICLOADBALANCINGV2_API TargetDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
34 const char* locationValue) const;
35 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template <typename IdT = Aws::String>
49 void SetId(IdT&& value) {
50 m_idHasBeenSet = true;
51 m_id = std::forward<IdT>(value);
52 }
53 template <typename IdT = Aws::String>
54 TargetDescription& WithId(IdT&& value) {
55 SetId(std::forward<IdT>(value));
56 return *this;
57 }
59
61
68 inline int GetPort() const { return m_port; }
69 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
70 inline void SetPort(int value) {
71 m_portHasBeenSet = true;
72 m_port = value;
73 }
74 inline TargetDescription& WithPort(int value) {
75 SetPort(value);
76 return *this;
77 }
79
81
99 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
100 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
101 template <typename AvailabilityZoneT = Aws::String>
102 void SetAvailabilityZone(AvailabilityZoneT&& value) {
103 m_availabilityZoneHasBeenSet = true;
104 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
105 }
106 template <typename AvailabilityZoneT = Aws::String>
107 TargetDescription& WithAvailabilityZone(AvailabilityZoneT&& value) {
108 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
109 return *this;
110 }
112
114
123 inline const Aws::String& GetQuicServerId() const { return m_quicServerId; }
124 inline bool QuicServerIdHasBeenSet() const { return m_quicServerIdHasBeenSet; }
125 template <typename QuicServerIdT = Aws::String>
126 void SetQuicServerId(QuicServerIdT&& value) {
127 m_quicServerIdHasBeenSet = true;
128 m_quicServerId = std::forward<QuicServerIdT>(value);
129 }
130 template <typename QuicServerIdT = Aws::String>
131 TargetDescription& WithQuicServerId(QuicServerIdT&& value) {
132 SetQuicServerId(std::forward<QuicServerIdT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_id;
138
139 int m_port{0};
140
141 Aws::String m_availabilityZone;
142
143 Aws::String m_quicServerId;
144 bool m_idHasBeenSet = false;
145 bool m_portHasBeenSet = false;
146 bool m_availabilityZoneHasBeenSet = false;
147 bool m_quicServerIdHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace ElasticLoadBalancingv2
152} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCINGV2_API TargetDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetDescription & WithQuicServerId(QuicServerIdT &&value)
AWS_ELASTICLOADBALANCINGV2_API TargetDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetDescription & WithAvailabilityZone(AvailabilityZoneT &&value)
AWS_ELASTICLOADBALANCINGV2_API TargetDescription()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream