AWS SDK for C++  0.14.3
AWS SDK for C++
TargetHealthDescription.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace ElasticLoadBalancingv2
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  TargetHealthDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const TargetDescription& GetTarget() const{ return m_target; }
53 
57  inline void SetTarget(const TargetDescription& value) { m_targetHasBeenSet = true; m_target = value; }
58 
62  inline void SetTarget(TargetDescription&& value) { m_targetHasBeenSet = true; m_target = value; }
63 
67  inline TargetHealthDescription& WithTarget(const TargetDescription& value) { SetTarget(value); return *this;}
68 
72  inline TargetHealthDescription& WithTarget(TargetDescription&& value) { SetTarget(value); return *this;}
73 
77  inline const Aws::String& GetHealthCheckPort() const{ return m_healthCheckPort; }
78 
82  inline void SetHealthCheckPort(const Aws::String& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
83 
87  inline void SetHealthCheckPort(Aws::String&& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
88 
92  inline void SetHealthCheckPort(const char* value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort.assign(value); }
93 
97  inline TargetHealthDescription& WithHealthCheckPort(const Aws::String& value) { SetHealthCheckPort(value); return *this;}
98 
102  inline TargetHealthDescription& WithHealthCheckPort(Aws::String&& value) { SetHealthCheckPort(value); return *this;}
103 
107  inline TargetHealthDescription& WithHealthCheckPort(const char* value) { SetHealthCheckPort(value); return *this;}
108 
112  inline const TargetHealth& GetTargetHealth() const{ return m_targetHealth; }
113 
117  inline void SetTargetHealth(const TargetHealth& value) { m_targetHealthHasBeenSet = true; m_targetHealth = value; }
118 
122  inline void SetTargetHealth(TargetHealth&& value) { m_targetHealthHasBeenSet = true; m_targetHealth = value; }
123 
127  inline TargetHealthDescription& WithTargetHealth(const TargetHealth& value) { SetTargetHealth(value); return *this;}
128 
132  inline TargetHealthDescription& WithTargetHealth(TargetHealth&& value) { SetTargetHealth(value); return *this;}
133 
134  private:
135  TargetDescription m_target;
136  bool m_targetHasBeenSet;
137  Aws::String m_healthCheckPort;
138  bool m_healthCheckPortHasBeenSet;
139  TargetHealth m_targetHealth;
140  bool m_targetHealthHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace ElasticLoadBalancingv2
145 } // namespace Aws
TargetHealthDescription & WithTargetHealth(const TargetHealth &value)
TargetHealthDescription & WithTarget(TargetDescription &&value)
TargetHealthDescription & WithHealthCheckPort(Aws::String &&value)
TargetHealthDescription & WithHealthCheckPort(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
TargetHealthDescription & WithTargetHealth(TargetHealth &&value)
TargetHealthDescription & WithHealthCheckPort(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICLOADBALANCINGV2_API
TargetHealthDescription & WithTarget(const TargetDescription &value)
JSON (JavaScript Object Notation).