AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TransitGatewayPolicyTableEntry.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/TransitGatewayPolicyRule.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API TransitGatewayPolicyTableEntry() = default;
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetPolicyRuleNumber() const { return m_policyRuleNumber; }
48 inline bool PolicyRuleNumberHasBeenSet() const { return m_policyRuleNumberHasBeenSet; }
49 template<typename PolicyRuleNumberT = Aws::String>
50 void SetPolicyRuleNumber(PolicyRuleNumberT&& value) { m_policyRuleNumberHasBeenSet = true; m_policyRuleNumber = std::forward<PolicyRuleNumberT>(value); }
51 template<typename PolicyRuleNumberT = Aws::String>
52 TransitGatewayPolicyTableEntry& WithPolicyRuleNumber(PolicyRuleNumberT&& value) { SetPolicyRuleNumber(std::forward<PolicyRuleNumberT>(value)); return *this;}
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) { m_policyRuleHasBeenSet = true; m_policyRule = std::forward<PolicyRuleT>(value); }
63 template<typename PolicyRuleT = TransitGatewayPolicyRule>
64 TransitGatewayPolicyTableEntry& WithPolicyRule(PolicyRuleT&& value) { SetPolicyRule(std::forward<PolicyRuleT>(value)); return *this;}
66
68
71 inline const Aws::String& GetTargetRouteTableId() const { return m_targetRouteTableId; }
72 inline bool TargetRouteTableIdHasBeenSet() const { return m_targetRouteTableIdHasBeenSet; }
73 template<typename TargetRouteTableIdT = Aws::String>
74 void SetTargetRouteTableId(TargetRouteTableIdT&& value) { m_targetRouteTableIdHasBeenSet = true; m_targetRouteTableId = std::forward<TargetRouteTableIdT>(value); }
75 template<typename TargetRouteTableIdT = Aws::String>
76 TransitGatewayPolicyTableEntry& WithTargetRouteTableId(TargetRouteTableIdT&& value) { SetTargetRouteTableId(std::forward<TargetRouteTableIdT>(value)); return *this;}
78 private:
79
80 Aws::String m_policyRuleNumber;
81 bool m_policyRuleNumberHasBeenSet = false;
82
83 TransitGatewayPolicyRule m_policyRule;
84 bool m_policyRuleHasBeenSet = false;
85
86 Aws::String m_targetRouteTableId;
87 bool m_targetRouteTableIdHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace EC2
92} // 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