AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
54 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
55 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
56 inline TargetDescription& WithId(const Aws::String& value) { SetId(value); return *this;}
57 inline TargetDescription& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
58 inline TargetDescription& WithId(const char* value) { SetId(value); return *this;}
60
62
69 inline int GetPort() const{ return m_port; }
70 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
71 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
72 inline TargetDescription& WithPort(int value) { SetPort(value); return *this;}
74
76
94 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
95 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
96 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
97 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
98 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
99 inline TargetDescription& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
100 inline TargetDescription& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
101 inline TargetDescription& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
103 private:
104
105 Aws::String m_id;
106 bool m_idHasBeenSet = false;
107
108 int m_port;
109 bool m_portHasBeenSet = false;
110
111 Aws::String m_availabilityZone;
112 bool m_availabilityZoneHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace ElasticLoadBalancingv2
117} // namespace Aws
TargetDescription & WithAvailabilityZone(const char *value)
TargetDescription & WithAvailabilityZone(Aws::String &&value)
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
TargetDescription & WithAvailabilityZone(const Aws::String &value)
TargetDescription & WithId(const char *value)
AWS_ELASTICLOADBALANCINGV2_API TargetDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API TargetDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API TargetDescription()
TargetDescription & WithId(const Aws::String &value)
TargetDescription & WithId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream