116 lines
3.5 KiB
C
116 lines
3.5 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Xml
|
|||
|
|
{
|
|||
|
|
class XmlNode;
|
|||
|
|
} // namespace Xml
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace ElasticLoadBalancingv2
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about how traffic will be distributed between multiple target
|
|||
|
|
* groups in a forward rule.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetGroupTuple">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_ELASTICLOADBALANCINGV2_API TargetGroupTuple
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
TargetGroupTuple();
|
|||
|
|
TargetGroupTuple(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|||
|
|
TargetGroupTuple& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|||
|
|
|
|||
|
|
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
|
|||
|
|
void OutputToStream(Aws::OStream& oStream, const char* location) const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the target group.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the target group.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the target group.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the target group.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the target group.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the target group.</p>
|
|||
|
|
*/
|
|||
|
|
inline TargetGroupTuple& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the target group.</p>
|
|||
|
|
*/
|
|||
|
|
inline TargetGroupTuple& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the target group.</p>
|
|||
|
|
*/
|
|||
|
|
inline TargetGroupTuple& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The weight. The range is 0 to 999.</p>
|
|||
|
|
*/
|
|||
|
|
inline int GetWeight() const{ return m_weight; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The weight. The range is 0 to 999.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The weight. The range is 0 to 999.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The weight. The range is 0 to 999.</p>
|
|||
|
|
*/
|
|||
|
|
inline TargetGroupTuple& WithWeight(int value) { SetWeight(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_targetGroupArn;
|
|||
|
|
bool m_targetGroupArnHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_weight;
|
|||
|
|
bool m_weightHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace ElasticLoadBalancingv2
|
|||
|
|
} // namespace Aws
|