AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetGroupTuple.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
33 {
34 public:
35 AWS_ELASTICLOADBALANCINGV2_API TargetGroupTuple();
36 AWS_ELASTICLOADBALANCINGV2_API TargetGroupTuple(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICLOADBALANCINGV2_API TargetGroupTuple& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; }
48 inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
49 inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
50 inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::move(value); }
51 inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); }
52 inline TargetGroupTuple& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;}
53 inline TargetGroupTuple& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(std::move(value)); return *this;}
54 inline TargetGroupTuple& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;}
56
58
61 inline int GetWeight() const{ return m_weight; }
62 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
63 inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
64 inline TargetGroupTuple& WithWeight(int value) { SetWeight(value); return *this;}
66 private:
67
68 Aws::String m_targetGroupArn;
69 bool m_targetGroupArnHasBeenSet = false;
70
71 int m_weight;
72 bool m_weightHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace ElasticLoadBalancingv2
77} // namespace Aws
TargetGroupTuple & WithTargetGroupArn(Aws::String &&value)
AWS_ELASTICLOADBALANCINGV2_API TargetGroupTuple & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetGroupTuple & WithTargetGroupArn(const char *value)
AWS_ELASTICLOADBALANCINGV2_API TargetGroupTuple()
TargetGroupTuple & WithTargetGroupArn(const Aws::String &value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCINGV2_API TargetGroupTuple(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream