AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TargetDescription.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElasticLoadBalancingv2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_ELASTICLOADBALANCINGV2_API TargetDescription() = default;
35 AWS_ELASTICLOADBALANCINGV2_API TargetDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_ELASTICLOADBALANCINGV2_API TargetDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
51 inline const Aws::String& GetId() const { return m_id; }
52 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 template<typename IdT = Aws::String>
54 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
55 template<typename IdT = Aws::String>
56 TargetDescription& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
58
60
67 inline int GetPort() const { return m_port; }
68 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
69 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
70 inline TargetDescription& WithPort(int value) { SetPort(value); return *this;}
72
74
92 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
93 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
94 template<typename AvailabilityZoneT = Aws::String>
95 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
96 template<typename AvailabilityZoneT = Aws::String>
97 TargetDescription& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
99 private:
100
101 Aws::String m_id;
102 bool m_idHasBeenSet = false;
103
104 int m_port{0};
105 bool m_portHasBeenSet = false;
106
107 Aws::String m_availabilityZone;
108 bool m_availabilityZoneHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace ElasticLoadBalancingv2
113} // 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)
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