AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
FirewallMetadata.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace NetworkFirewall {
20namespace Model {
21
30 public:
31 AWS_NETWORKFIREWALL_API FirewallMetadata() = default;
32 AWS_NETWORKFIREWALL_API FirewallMetadata(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_NETWORKFIREWALL_API FirewallMetadata& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
41 inline const Aws::String& GetFirewallName() const { return m_firewallName; }
42 inline bool FirewallNameHasBeenSet() const { return m_firewallNameHasBeenSet; }
43 template <typename FirewallNameT = Aws::String>
44 void SetFirewallName(FirewallNameT&& value) {
45 m_firewallNameHasBeenSet = true;
46 m_firewallName = std::forward<FirewallNameT>(value);
47 }
48 template <typename FirewallNameT = Aws::String>
49 FirewallMetadata& WithFirewallName(FirewallNameT&& value) {
50 SetFirewallName(std::forward<FirewallNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetFirewallArn() const { return m_firewallArn; }
60 inline bool FirewallArnHasBeenSet() const { return m_firewallArnHasBeenSet; }
61 template <typename FirewallArnT = Aws::String>
62 void SetFirewallArn(FirewallArnT&& value) {
63 m_firewallArnHasBeenSet = true;
64 m_firewallArn = std::forward<FirewallArnT>(value);
65 }
66 template <typename FirewallArnT = Aws::String>
67 FirewallMetadata& WithFirewallArn(FirewallArnT&& value) {
68 SetFirewallArn(std::forward<FirewallArnT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetTransitGatewayAttachmentId() const { return m_transitGatewayAttachmentId; }
79 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
80 template <typename TransitGatewayAttachmentIdT = Aws::String>
81 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) {
82 m_transitGatewayAttachmentIdHasBeenSet = true;
83 m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value);
84 }
85 template <typename TransitGatewayAttachmentIdT = Aws::String>
86 FirewallMetadata& WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) {
87 SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_firewallName;
93
94 Aws::String m_firewallArn;
95
96 Aws::String m_transitGatewayAttachmentId;
97 bool m_firewallNameHasBeenSet = false;
98 bool m_firewallArnHasBeenSet = false;
99 bool m_transitGatewayAttachmentIdHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace NetworkFirewall
104} // namespace Aws
void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
FirewallMetadata & WithFirewallArn(FirewallArnT &&value)
AWS_NETWORKFIREWALL_API FirewallMetadata(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API FirewallMetadata & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_NETWORKFIREWALL_API FirewallMetadata()=default
const Aws::String & GetTransitGatewayAttachmentId() const
FirewallMetadata & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
FirewallMetadata & WithFirewallName(FirewallNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String