AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
ResourceContext.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
10#include <aws/network-firewall/model/ContextType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace NetworkFirewall {
21namespace Model {
22
30 public:
31 AWS_NETWORKFIREWALL_API ResourceContext() = default;
32 AWS_NETWORKFIREWALL_API ResourceContext(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_NETWORKFIREWALL_API ResourceContext& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
44 inline ContextType GetContextType() const { return m_contextType; }
45 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
46 inline void SetContextType(ContextType value) {
47 m_contextTypeHasBeenSet = true;
48 m_contextType = value;
49 }
51 SetContextType(value);
52 return *this;
53 }
55
57
60 inline const Aws::String& GetRegion() const { return m_region; }
61 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
62 template <typename RegionT = Aws::String>
63 void SetRegion(RegionT&& value) {
64 m_regionHasBeenSet = true;
65 m_region = std::forward<RegionT>(value);
66 }
67 template <typename RegionT = Aws::String>
68 ResourceContext& WithRegion(RegionT&& value) {
69 SetRegion(std::forward<RegionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
79 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
80 template <typename AvailabilityZoneT = Aws::String>
81 void SetAvailabilityZone(AvailabilityZoneT&& value) {
82 m_availabilityZoneHasBeenSet = true;
83 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
84 }
85 template <typename AvailabilityZoneT = Aws::String>
86 ResourceContext& WithAvailabilityZone(AvailabilityZoneT&& value) {
87 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetAttachmentType() const { return m_attachmentType; }
97 inline bool AttachmentTypeHasBeenSet() const { return m_attachmentTypeHasBeenSet; }
98 template <typename AttachmentTypeT = Aws::String>
99 void SetAttachmentType(AttachmentTypeT&& value) {
100 m_attachmentTypeHasBeenSet = true;
101 m_attachmentType = std::forward<AttachmentTypeT>(value);
102 }
103 template <typename AttachmentTypeT = Aws::String>
104 ResourceContext& WithAttachmentType(AttachmentTypeT&& value) {
105 SetAttachmentType(std::forward<AttachmentTypeT>(value));
106 return *this;
107 }
109
111
117 inline const Aws::String& GetPublicId() const { return m_publicId; }
118 inline bool PublicIdHasBeenSet() const { return m_publicIdHasBeenSet; }
119 template <typename PublicIdT = Aws::String>
120 void SetPublicId(PublicIdT&& value) {
121 m_publicIdHasBeenSet = true;
122 m_publicId = std::forward<PublicIdT>(value);
123 }
124 template <typename PublicIdT = Aws::String>
125 ResourceContext& WithPublicId(PublicIdT&& value) {
126 SetPublicId(std::forward<PublicIdT>(value));
127 return *this;
128 }
130 private:
131 ContextType m_contextType{ContextType::NOT_SET};
132
133 Aws::String m_region;
134
135 Aws::String m_availabilityZone;
136
137 Aws::String m_attachmentType;
138
139 Aws::String m_publicId;
140 bool m_contextTypeHasBeenSet = false;
141 bool m_regionHasBeenSet = false;
142 bool m_availabilityZoneHasBeenSet = false;
143 bool m_attachmentTypeHasBeenSet = false;
144 bool m_publicIdHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace NetworkFirewall
149} // namespace Aws
const Aws::String & GetAvailabilityZone() const
ResourceContext & WithRegion(RegionT &&value)
const Aws::String & GetAttachmentType() const
ResourceContext & WithAvailabilityZone(AvailabilityZoneT &&value)
AWS_NETWORKFIREWALL_API ResourceContext()=default
void SetAttachmentType(AttachmentTypeT &&value)
ResourceContext & WithPublicId(PublicIdT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
AWS_NETWORKFIREWALL_API ResourceContext(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ResourceContext & WithContextType(ContextType value)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_NETWORKFIREWALL_API ResourceContext & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ResourceContext & WithAttachmentType(AttachmentTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String