AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RulePriorityPair.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 RulePriorityPair();
36 AWS_ELASTICLOADBALANCINGV2_API RulePriorityPair(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICLOADBALANCINGV2_API RulePriorityPair& 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& GetRuleArn() const{ return m_ruleArn; }
48 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
49 inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
50 inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); }
51 inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); }
52 inline RulePriorityPair& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
53 inline RulePriorityPair& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
54 inline RulePriorityPair& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
56
58
61 inline int GetPriority() const{ return m_priority; }
62 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
63 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
64 inline RulePriorityPair& WithPriority(int value) { SetPriority(value); return *this;}
66 private:
67
68 Aws::String m_ruleArn;
69 bool m_ruleArnHasBeenSet = false;
70
71 int m_priority;
72 bool m_priorityHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace ElasticLoadBalancingv2
77} // namespace Aws
RulePriorityPair & WithRuleArn(Aws::String &&value)
RulePriorityPair & WithRuleArn(const char *value)
RulePriorityPair & WithRuleArn(const Aws::String &value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCINGV2_API RulePriorityPair(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCINGV2_API RulePriorityPair & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API RulePriorityPair()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream