AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AnalysisLoadBalancerTarget.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/AnalysisComponent.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetAddress() const{ return m_address; }
48 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
49 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
50 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
51 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
52 inline AnalysisLoadBalancerTarget& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
53 inline AnalysisLoadBalancerTarget& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
54 inline AnalysisLoadBalancerTarget& WithAddress(const char* value) { SetAddress(value); return *this;}
56
58
61 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
62 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
63 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
64 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
65 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
67 inline AnalysisLoadBalancerTarget& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
68 inline AnalysisLoadBalancerTarget& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
70
72
75 inline const AnalysisComponent& GetInstance() const{ return m_instance; }
76 inline bool InstanceHasBeenSet() const { return m_instanceHasBeenSet; }
77 inline void SetInstance(const AnalysisComponent& value) { m_instanceHasBeenSet = true; m_instance = value; }
78 inline void SetInstance(AnalysisComponent&& value) { m_instanceHasBeenSet = true; m_instance = std::move(value); }
79 inline AnalysisLoadBalancerTarget& WithInstance(const AnalysisComponent& value) { SetInstance(value); return *this;}
80 inline AnalysisLoadBalancerTarget& WithInstance(AnalysisComponent&& value) { SetInstance(std::move(value)); return *this;}
82
84
87 inline int GetPort() const{ return m_port; }
88 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
89 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
90 inline AnalysisLoadBalancerTarget& WithPort(int value) { SetPort(value); return *this;}
92 private:
93
94 Aws::String m_address;
95 bool m_addressHasBeenSet = false;
96
97 Aws::String m_availabilityZone;
98 bool m_availabilityZoneHasBeenSet = false;
99
100 AnalysisComponent m_instance;
101 bool m_instanceHasBeenSet = false;
102
103 int m_port;
104 bool m_portHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace EC2
109} // namespace Aws
AnalysisLoadBalancerTarget & WithAvailabilityZone(const Aws::String &value)
AnalysisLoadBalancerTarget & WithAvailabilityZone(const char *value)
AWS_EC2_API AnalysisLoadBalancerTarget & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AnalysisLoadBalancerTarget & WithInstance(AnalysisComponent &&value)
AWS_EC2_API AnalysisLoadBalancerTarget(const Aws::Utils::Xml::XmlNode &xmlNode)
AnalysisLoadBalancerTarget & WithAvailabilityZone(Aws::String &&value)
AnalysisLoadBalancerTarget & WithAddress(Aws::String &&value)
AnalysisLoadBalancerTarget & WithPort(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetInstance(const AnalysisComponent &value)
AnalysisLoadBalancerTarget & WithInstance(const AnalysisComponent &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AnalysisLoadBalancerTarget & WithAddress(const char *value)
AnalysisLoadBalancerTarget & WithAddress(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream