AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TransitGatewayPolicyTableEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/TransitGatewayPolicyRule.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
29 public:
30 AWS_EC2_API TransitGatewayPolicyTableEntry() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetPolicyRuleNumber() const { return m_policyRuleNumber; }
42 inline bool PolicyRuleNumberHasBeenSet() const { return m_policyRuleNumberHasBeenSet; }
43 template <typename PolicyRuleNumberT = Aws::String>
44 void SetPolicyRuleNumber(PolicyRuleNumberT&& value) {
45 m_policyRuleNumberHasBeenSet = true;
46 m_policyRuleNumber = std::forward<PolicyRuleNumberT>(value);
47 }
48 template <typename PolicyRuleNumberT = Aws::String>
50 SetPolicyRuleNumber(std::forward<PolicyRuleNumberT>(value));
51 return *this;
52 }
54
56
59 inline const TransitGatewayPolicyRule& GetPolicyRule() const { return m_policyRule; }
60 inline bool PolicyRuleHasBeenSet() const { return m_policyRuleHasBeenSet; }
61 template <typename PolicyRuleT = TransitGatewayPolicyRule>
62 void SetPolicyRule(PolicyRuleT&& value) {
63 m_policyRuleHasBeenSet = true;
64 m_policyRule = std::forward<PolicyRuleT>(value);
65 }
66 template <typename PolicyRuleT = TransitGatewayPolicyRule>
68 SetPolicyRule(std::forward<PolicyRuleT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetTargetRouteTableId() const { return m_targetRouteTableId; }
78 inline bool TargetRouteTableIdHasBeenSet() const { return m_targetRouteTableIdHasBeenSet; }
79 template <typename TargetRouteTableIdT = Aws::String>
80 void SetTargetRouteTableId(TargetRouteTableIdT&& value) {
81 m_targetRouteTableIdHasBeenSet = true;
82 m_targetRouteTableId = std::forward<TargetRouteTableIdT>(value);
83 }
84 template <typename TargetRouteTableIdT = Aws::String>
86 SetTargetRouteTableId(std::forward<TargetRouteTableIdT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_policyRuleNumber;
92
93 TransitGatewayPolicyRule m_policyRule;
94
95 Aws::String m_targetRouteTableId;
96 bool m_policyRuleNumberHasBeenSet = false;
97 bool m_policyRuleHasBeenSet = false;
98 bool m_targetRouteTableIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace EC2
103} // namespace Aws
const Aws::String & GetPolicyRuleNumber() const
AWS_EC2_API TransitGatewayPolicyTableEntry()=default
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetTargetRouteTableId() const
bool PolicyRuleHasBeenSet() const
AWS_EC2_API TransitGatewayPolicyTableEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API TransitGatewayPolicyTableEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTargetRouteTableId(TargetRouteTableIdT &&value)
TransitGatewayPolicyTableEntry & WithPolicyRule(PolicyRuleT &&value)
bool TargetRouteTableIdHasBeenSet() const
TransitGatewayPolicyTableEntry & WithTargetRouteTableId(TargetRouteTableIdT &&value)
void SetPolicyRule(PolicyRuleT &&value)
TransitGatewayPolicyTableEntry & WithPolicyRuleNumber(PolicyRuleNumberT &&value)
void SetPolicyRuleNumber(PolicyRuleNumberT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const TransitGatewayPolicyRule & GetPolicyRule() const
bool PolicyRuleNumberHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream