AWS SDK for C++  1.9.74
AWS SDK for C++
AnalysisLoadBalancerTarget.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetAddress() const{ return m_address; }
47 
51  inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
52 
56  inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
57 
61  inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
62 
66  inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
67 
71  inline AnalysisLoadBalancerTarget& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
72 
76  inline AnalysisLoadBalancerTarget& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
77 
81  inline AnalysisLoadBalancerTarget& WithAddress(const char* value) { SetAddress(value); return *this;}
82 
83 
87  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
88 
92  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
93 
97  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
98 
102  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
103 
107  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
108 
112  inline AnalysisLoadBalancerTarget& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
113 
117  inline AnalysisLoadBalancerTarget& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
118 
122  inline AnalysisLoadBalancerTarget& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
123 
124 
128  inline const AnalysisComponent& GetInstance() const{ return m_instance; }
129 
133  inline bool InstanceHasBeenSet() const { return m_instanceHasBeenSet; }
134 
138  inline void SetInstance(const AnalysisComponent& value) { m_instanceHasBeenSet = true; m_instance = value; }
139 
143  inline void SetInstance(AnalysisComponent&& value) { m_instanceHasBeenSet = true; m_instance = std::move(value); }
144 
148  inline AnalysisLoadBalancerTarget& WithInstance(const AnalysisComponent& value) { SetInstance(value); return *this;}
149 
153  inline AnalysisLoadBalancerTarget& WithInstance(AnalysisComponent&& value) { SetInstance(std::move(value)); return *this;}
154 
155 
159  inline int GetPort() const{ return m_port; }
160 
164  inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
165 
169  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
170 
174  inline AnalysisLoadBalancerTarget& WithPort(int value) { SetPort(value); return *this;}
175 
176  private:
177 
178  Aws::String m_address;
179  bool m_addressHasBeenSet;
180 
181  Aws::String m_availabilityZone;
182  bool m_availabilityZoneHasBeenSet;
183 
184  AnalysisComponent m_instance;
185  bool m_instanceHasBeenSet;
186 
187  int m_port;
188  bool m_portHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace EC2
193 } // namespace Aws
Aws::EC2::Model::AnalysisLoadBalancerTarget::WithAvailabilityZone
AnalysisLoadBalancerTarget & WithAvailabilityZone(const Aws::String &value)
Definition: AnalysisLoadBalancerTarget.h:112
Aws::EC2::Model::AnalysisLoadBalancerTarget::SetPort
void SetPort(int value)
Definition: AnalysisLoadBalancerTarget.h:169
Aws::EC2::Model::AnalysisLoadBalancerTarget::AddressHasBeenSet
bool AddressHasBeenSet() const
Definition: AnalysisLoadBalancerTarget.h:51
AnalysisComponent.h
Aws::EC2::Model::AnalysisLoadBalancerTarget
Definition: AnalysisLoadBalancerTarget.h:33
Aws::EC2::Model::AnalysisLoadBalancerTarget::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: AnalysisLoadBalancerTarget.h:97
Aws::EC2::Model::AnalysisLoadBalancerTarget::SetAddress
void SetAddress(const Aws::String &value)
Definition: AnalysisLoadBalancerTarget.h:56
Aws::EC2::Model::AnalysisLoadBalancerTarget::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: AnalysisLoadBalancerTarget.h:102
Aws::EC2::Model::AnalysisLoadBalancerTarget::AnalysisLoadBalancerTarget
AnalysisLoadBalancerTarget()
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AnalysisLoadBalancerTarget::WithAddress
AnalysisLoadBalancerTarget & WithAddress(const char *value)
Definition: AnalysisLoadBalancerTarget.h:81
Aws::EC2::Model::AnalysisLoadBalancerTarget::SetAddress
void SetAddress(const char *value)
Definition: AnalysisLoadBalancerTarget.h:66
AWSStreamFwd.h
Aws::EC2::Model::AnalysisLoadBalancerTarget::GetPort
int GetPort() const
Definition: AnalysisLoadBalancerTarget.h:159
Aws::EC2::Model::AnalysisLoadBalancerTarget::WithAddress
AnalysisLoadBalancerTarget & WithAddress(const Aws::String &value)
Definition: AnalysisLoadBalancerTarget.h:71
Aws::EC2::Model::AnalysisComponent
Definition: AnalysisComponent.h:32
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::AnalysisLoadBalancerTarget::WithInstance
AnalysisLoadBalancerTarget & WithInstance(const AnalysisComponent &value)
Definition: AnalysisLoadBalancerTarget.h:148
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::AnalysisLoadBalancerTarget::SetInstance
void SetInstance(const AnalysisComponent &value)
Definition: AnalysisLoadBalancerTarget.h:138
Aws::EC2::Model::AnalysisLoadBalancerTarget::SetAddress
void SetAddress(Aws::String &&value)
Definition: AnalysisLoadBalancerTarget.h:61
Aws::EC2::Model::AnalysisLoadBalancerTarget::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::AnalysisLoadBalancerTarget::SetInstance
void SetInstance(AnalysisComponent &&value)
Definition: AnalysisLoadBalancerTarget.h:143
Aws::EC2::Model::AnalysisLoadBalancerTarget::InstanceHasBeenSet
bool InstanceHasBeenSet() const
Definition: AnalysisLoadBalancerTarget.h:133
Aws::EC2::Model::AnalysisLoadBalancerTarget::operator=
AnalysisLoadBalancerTarget & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::AnalysisLoadBalancerTarget::PortHasBeenSet
bool PortHasBeenSet() const
Definition: AnalysisLoadBalancerTarget.h:164
Aws::EC2::Model::AnalysisLoadBalancerTarget::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: AnalysisLoadBalancerTarget.h:92
AWSString.h
Aws::EC2::Model::AnalysisLoadBalancerTarget::WithInstance
AnalysisLoadBalancerTarget & WithInstance(AnalysisComponent &&value)
Definition: AnalysisLoadBalancerTarget.h:153
Aws::EC2::Model::AnalysisLoadBalancerTarget::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::AnalysisLoadBalancerTarget::WithAddress
AnalysisLoadBalancerTarget & WithAddress(Aws::String &&value)
Definition: AnalysisLoadBalancerTarget.h:76
Aws::EC2::Model::AnalysisLoadBalancerTarget::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: AnalysisLoadBalancerTarget.h:107
Aws::EC2::Model::AnalysisLoadBalancerTarget::GetAddress
const Aws::String & GetAddress() const
Definition: AnalysisLoadBalancerTarget.h:46
Aws::EC2::Model::AnalysisLoadBalancerTarget::WithPort
AnalysisLoadBalancerTarget & WithPort(int value)
Definition: AnalysisLoadBalancerTarget.h:174
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AnalysisLoadBalancerTarget::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: AnalysisLoadBalancerTarget.h:87
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::AnalysisLoadBalancerTarget::AnalysisLoadBalancerTarget
AnalysisLoadBalancerTarget(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::AnalysisLoadBalancerTarget::WithAvailabilityZone
AnalysisLoadBalancerTarget & WithAvailabilityZone(Aws::String &&value)
Definition: AnalysisLoadBalancerTarget.h:117
Aws::EC2::Model::AnalysisLoadBalancerTarget::WithAvailabilityZone
AnalysisLoadBalancerTarget & WithAvailabilityZone(const char *value)
Definition: AnalysisLoadBalancerTarget.h:122
EC2_EXPORTS.h
Aws::EC2::Model::AnalysisLoadBalancerTarget::GetInstance
const AnalysisComponent & GetInstance() const
Definition: AnalysisLoadBalancerTarget.h:128