AWS SDK for C++

AWS SDK for C++ Version 1.11.857

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#include <aws/ec2/model/TransitGatewayPolicyTableEntryState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
30 public:
31 AWS_EC2_API TransitGatewayPolicyTableEntry() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetPolicyRuleNumber() const { return m_policyRuleNumber; }
43 inline bool PolicyRuleNumberHasBeenSet() const { return m_policyRuleNumberHasBeenSet; }
44 template <typename PolicyRuleNumberT = Aws::String>
45 void SetPolicyRuleNumber(PolicyRuleNumberT&& value) {
46 m_policyRuleNumberHasBeenSet = true;
47 m_policyRuleNumber = std::forward<PolicyRuleNumberT>(value);
48 }
49 template <typename PolicyRuleNumberT = Aws::String>
51 SetPolicyRuleNumber(std::forward<PolicyRuleNumberT>(value));
52 return *this;
53 }
55
57
60 inline const TransitGatewayPolicyRule& GetPolicyRule() const { return m_policyRule; }
61 inline bool PolicyRuleHasBeenSet() const { return m_policyRuleHasBeenSet; }
62 template <typename PolicyRuleT = TransitGatewayPolicyRule>
63 void SetPolicyRule(PolicyRuleT&& value) {
64 m_policyRuleHasBeenSet = true;
65 m_policyRule = std::forward<PolicyRuleT>(value);
66 }
67 template <typename PolicyRuleT = TransitGatewayPolicyRule>
69 SetPolicyRule(std::forward<PolicyRuleT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetTargetRouteTableId() const { return m_targetRouteTableId; }
79 inline bool TargetRouteTableIdHasBeenSet() const { return m_targetRouteTableIdHasBeenSet; }
80 template <typename TargetRouteTableIdT = Aws::String>
81 void SetTargetRouteTableId(TargetRouteTableIdT&& value) {
82 m_targetRouteTableIdHasBeenSet = true;
83 m_targetRouteTableId = std::forward<TargetRouteTableIdT>(value);
84 }
85 template <typename TargetRouteTableIdT = Aws::String>
87 SetTargetRouteTableId(std::forward<TargetRouteTableIdT>(value));
88 return *this;
89 }
91
93
96 inline TransitGatewayPolicyTableEntryState GetState() const { return m_state; }
97 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
99 m_stateHasBeenSet = true;
100 m_state = value;
101 }
103 SetState(value);
104 return *this;
105 }
107 private:
108 Aws::String m_policyRuleNumber;
109
110 TransitGatewayPolicyRule m_policyRule;
111
112 Aws::String m_targetRouteTableId;
113
115 bool m_policyRuleNumberHasBeenSet = false;
116 bool m_policyRuleHasBeenSet = false;
117 bool m_targetRouteTableIdHasBeenSet = false;
118 bool m_stateHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace EC2
123} // 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
void SetState(TransitGatewayPolicyTableEntryState value)
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
TransitGatewayPolicyTableEntryState GetState() const
bool PolicyRuleNumberHasBeenSet() const
TransitGatewayPolicyTableEntry & WithState(TransitGatewayPolicyTableEntryState value)
bool StateHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream