/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElasticLoadBalancingv2 { namespace Model { /** *

Information about the priorities for the rules for a listener.

See * Also:

AWS * API Reference

*/ class RulePriorityPair { public: AWS_ELASTICLOADBALANCINGV2_API RulePriorityPair(); AWS_ELASTICLOADBALANCINGV2_API RulePriorityPair(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICLOADBALANCINGV2_API RulePriorityPair& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline const Aws::String& GetRuleArn() const{ return m_ruleArn; } /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; } /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline RulePriorityPair& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline RulePriorityPair& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline RulePriorityPair& WithRuleArn(const char* value) { SetRuleArn(value); return *this;} /** *

The rule priority.

*/ inline int GetPriority() const{ return m_priority; } /** *

The rule priority.

*/ inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; } /** *

The rule priority.

*/ inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; } /** *

The rule priority.

*/ inline RulePriorityPair& WithPriority(int value) { SetPriority(value); return *this;} private: Aws::String m_ruleArn; bool m_ruleArnHasBeenSet = false; int m_priority; bool m_priorityHasBeenSet = false; }; } // namespace Model } // namespace ElasticLoadBalancingv2 } // namespace Aws