AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetPolicyRuleNumber(const Aws::String& value) { m_policyRuleNumberHasBeenSet = true; m_policyRuleNumber = value; }
50 inline void SetPolicyRuleNumber(Aws::String&& value) { m_policyRuleNumberHasBeenSet = true; m_policyRuleNumber = std::move(value); }
51 inline void SetPolicyRuleNumber(const char* value) { m_policyRuleNumberHasBeenSet = true; m_policyRuleNumber.assign(value); }
53 inline TransitGatewayPolicyTableEntry& WithPolicyRuleNumber(Aws::String&& value) { SetPolicyRuleNumber(std::move(value)); return *this;}
54 inline TransitGatewayPolicyTableEntry& WithPolicyRuleNumber(const char* value) { SetPolicyRuleNumber(value); return *this;}
56
58
61 inline const TransitGatewayPolicyRule& GetPolicyRule() const{ return m_policyRule; }
62 inline bool PolicyRuleHasBeenSet() const { return m_policyRuleHasBeenSet; }
63 inline void SetPolicyRule(const TransitGatewayPolicyRule& value) { m_policyRuleHasBeenSet = true; m_policyRule = value; }
64 inline void SetPolicyRule(TransitGatewayPolicyRule&& value) { m_policyRuleHasBeenSet = true; m_policyRule = std::move(value); }
66 inline TransitGatewayPolicyTableEntry& WithPolicyRule(TransitGatewayPolicyRule&& value) { SetPolicyRule(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetTargetRouteTableId() const{ return m_targetRouteTableId; }
74 inline bool TargetRouteTableIdHasBeenSet() const { return m_targetRouteTableIdHasBeenSet; }
75 inline void SetTargetRouteTableId(const Aws::String& value) { m_targetRouteTableIdHasBeenSet = true; m_targetRouteTableId = value; }
76 inline void SetTargetRouteTableId(Aws::String&& value) { m_targetRouteTableIdHasBeenSet = true; m_targetRouteTableId = std::move(value); }
77 inline void SetTargetRouteTableId(const char* value) { m_targetRouteTableIdHasBeenSet = true; m_targetRouteTableId.assign(value); }
80 inline TransitGatewayPolicyTableEntry& WithTargetRouteTableId(const char* value) { SetTargetRouteTableId(value); return *this;}
82 private:
83
84 Aws::String m_policyRuleNumber;
85 bool m_policyRuleNumberHasBeenSet = false;
86
87 TransitGatewayPolicyRule m_policyRule;
88 bool m_policyRuleHasBeenSet = false;
89
90 Aws::String m_targetRouteTableId;
91 bool m_targetRouteTableIdHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace EC2
96} // namespace Aws
const Aws::String & GetPolicyRuleNumber() const
TransitGatewayPolicyTableEntry & WithPolicyRuleNumber(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TransitGatewayPolicyTableEntry & WithPolicyRule(const TransitGatewayPolicyRule &value)
void SetPolicyRuleNumber(const char *value)
TransitGatewayPolicyTableEntry & WithTargetRouteTableId(const Aws::String &value)
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 SetPolicyRuleNumber(const Aws::String &value)
void SetTargetRouteTableId(const char *value)
void SetPolicyRuleNumber(Aws::String &&value)
void SetTargetRouteTableId(Aws::String &&value)
bool TargetRouteTableIdHasBeenSet() const
void SetTargetRouteTableId(const Aws::String &value)
TransitGatewayPolicyTableEntry & WithTargetRouteTableId(Aws::String &&value)
void SetPolicyRule(const TransitGatewayPolicyRule &value)
AWS_EC2_API TransitGatewayPolicyTableEntry()
TransitGatewayPolicyTableEntry & WithPolicyRule(TransitGatewayPolicyRule &&value)
void SetPolicyRule(TransitGatewayPolicyRule &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayPolicyTableEntry & WithTargetRouteTableId(const char *value)
TransitGatewayPolicyTableEntry & WithPolicyRuleNumber(const Aws::String &value)
const TransitGatewayPolicyRule & GetPolicyRule() const
bool PolicyRuleNumberHasBeenSet() const
TransitGatewayPolicyTableEntry & WithPolicyRuleNumber(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream