AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGatewayPolicyTable.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/TransitGatewayPolicyTableState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
36 {
37 public:
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetTransitGatewayPolicyTableId() const{ return m_transitGatewayPolicyTableId; }
51 inline bool TransitGatewayPolicyTableIdHasBeenSet() const { return m_transitGatewayPolicyTableIdHasBeenSet; }
52 inline void SetTransitGatewayPolicyTableId(const Aws::String& value) { m_transitGatewayPolicyTableIdHasBeenSet = true; m_transitGatewayPolicyTableId = value; }
53 inline void SetTransitGatewayPolicyTableId(Aws::String&& value) { m_transitGatewayPolicyTableIdHasBeenSet = true; m_transitGatewayPolicyTableId = std::move(value); }
54 inline void SetTransitGatewayPolicyTableId(const char* value) { m_transitGatewayPolicyTableIdHasBeenSet = true; m_transitGatewayPolicyTableId.assign(value); }
59
61
64 inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
65 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
66 inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
67 inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
68 inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
70 inline TransitGatewayPolicyTable& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
71 inline TransitGatewayPolicyTable& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
73
75
78 inline const TransitGatewayPolicyTableState& GetState() const{ return m_state; }
79 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
80 inline void SetState(const TransitGatewayPolicyTableState& value) { m_stateHasBeenSet = true; m_state = value; }
81 inline void SetState(TransitGatewayPolicyTableState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
82 inline TransitGatewayPolicyTable& WithState(const TransitGatewayPolicyTableState& value) { SetState(value); return *this;}
83 inline TransitGatewayPolicyTable& WithState(TransitGatewayPolicyTableState&& value) { SetState(std::move(value)); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
91 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
92 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
93 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
95 inline TransitGatewayPolicyTable& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
97
99
102 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
105 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
106 inline TransitGatewayPolicyTable& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
107 inline TransitGatewayPolicyTable& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
108 inline TransitGatewayPolicyTable& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
109 inline TransitGatewayPolicyTable& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
111 private:
112
113 Aws::String m_transitGatewayPolicyTableId;
114 bool m_transitGatewayPolicyTableIdHasBeenSet = false;
115
116 Aws::String m_transitGatewayId;
117 bool m_transitGatewayIdHasBeenSet = false;
118
120 bool m_stateHasBeenSet = false;
121
122 Aws::Utils::DateTime m_creationTime;
123 bool m_creationTimeHasBeenSet = false;
124
125 Aws::Vector<Tag> m_tags;
126 bool m_tagsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace EC2
131} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetCreationTime() const
TransitGatewayPolicyTable & WithTransitGatewayPolicyTableId(const char *value)
TransitGatewayPolicyTable & WithState(TransitGatewayPolicyTableState &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
AWS_EC2_API TransitGatewayPolicyTable(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayPolicyTable & WithCreationTime(Aws::Utils::DateTime &&value)
TransitGatewayPolicyTable & WithState(const TransitGatewayPolicyTableState &value)
TransitGatewayPolicyTable & WithTransitGatewayId(const Aws::String &value)
AWS_EC2_API TransitGatewayPolicyTable & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayPolicyTable & WithTransitGatewayPolicyTableId(const Aws::String &value)
TransitGatewayPolicyTable & WithTags(const Aws::Vector< Tag > &value)
void SetState(const TransitGatewayPolicyTableState &value)
void SetTransitGatewayPolicyTableId(const Aws::String &value)
void SetState(TransitGatewayPolicyTableState &&value)
TransitGatewayPolicyTable & AddTags(Tag &&value)
TransitGatewayPolicyTable & WithTransitGatewayId(const char *value)
TransitGatewayPolicyTable & AddTags(const Tag &value)
TransitGatewayPolicyTable & WithCreationTime(const Aws::Utils::DateTime &value)
const TransitGatewayPolicyTableState & GetState() const
void SetTags(const Aws::Vector< Tag > &value)
TransitGatewayPolicyTable & WithTags(Aws::Vector< Tag > &&value)
TransitGatewayPolicyTable & WithTransitGatewayId(Aws::String &&value)
void SetCreationTime(Aws::Utils::DateTime &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TransitGatewayPolicyTable & WithTransitGatewayPolicyTableId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream