AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
FlowOperationMetadata.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
11#include <aws/network-firewall/model/FlowOperationStatus.h>
12#include <aws/network-firewall/model/FlowOperationType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace NetworkFirewall {
23namespace Model {
24
32 public:
33 AWS_NETWORKFIREWALL_API FlowOperationMetadata() = default;
34 AWS_NETWORKFIREWALL_API FlowOperationMetadata(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_NETWORKFIREWALL_API FlowOperationMetadata& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
43 inline const Aws::String& GetFlowOperationId() const { return m_flowOperationId; }
44 inline bool FlowOperationIdHasBeenSet() const { return m_flowOperationIdHasBeenSet; }
45 template <typename FlowOperationIdT = Aws::String>
46 void SetFlowOperationId(FlowOperationIdT&& value) {
47 m_flowOperationIdHasBeenSet = true;
48 m_flowOperationId = std::forward<FlowOperationIdT>(value);
49 }
50 template <typename FlowOperationIdT = Aws::String>
51 FlowOperationMetadata& WithFlowOperationId(FlowOperationIdT&& value) {
52 SetFlowOperationId(std::forward<FlowOperationIdT>(value));
53 return *this;
54 }
56
58
61 inline FlowOperationType GetFlowOperationType() const { return m_flowOperationType; }
62 inline bool FlowOperationTypeHasBeenSet() const { return m_flowOperationTypeHasBeenSet; }
64 m_flowOperationTypeHasBeenSet = true;
65 m_flowOperationType = value;
66 }
69 return *this;
70 }
72
74
78 inline const Aws::Utils::DateTime& GetFlowRequestTimestamp() const { return m_flowRequestTimestamp; }
79 inline bool FlowRequestTimestampHasBeenSet() const { return m_flowRequestTimestampHasBeenSet; }
80 template <typename FlowRequestTimestampT = Aws::Utils::DateTime>
81 void SetFlowRequestTimestamp(FlowRequestTimestampT&& value) {
82 m_flowRequestTimestampHasBeenSet = true;
83 m_flowRequestTimestamp = std::forward<FlowRequestTimestampT>(value);
84 }
85 template <typename FlowRequestTimestampT = Aws::Utils::DateTime>
86 FlowOperationMetadata& WithFlowRequestTimestamp(FlowRequestTimestampT&& value) {
87 SetFlowRequestTimestamp(std::forward<FlowRequestTimestampT>(value));
88 return *this;
89 }
91
93
100 inline FlowOperationStatus GetFlowOperationStatus() const { return m_flowOperationStatus; }
101 inline bool FlowOperationStatusHasBeenSet() const { return m_flowOperationStatusHasBeenSet; }
103 m_flowOperationStatusHasBeenSet = true;
104 m_flowOperationStatus = value;
105 }
111 private:
112 Aws::String m_flowOperationId;
113
115
116 Aws::Utils::DateTime m_flowRequestTimestamp{};
117
119 bool m_flowOperationIdHasBeenSet = false;
120 bool m_flowOperationTypeHasBeenSet = false;
121 bool m_flowRequestTimestampHasBeenSet = false;
122 bool m_flowOperationStatusHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace NetworkFirewall
127} // namespace Aws
AWS_NETWORKFIREWALL_API FlowOperationMetadata & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API FlowOperationMetadata(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetFlowRequestTimestamp(FlowRequestTimestampT &&value)
FlowOperationMetadata & WithFlowOperationType(FlowOperationType value)
const Aws::Utils::DateTime & GetFlowRequestTimestamp() const
FlowOperationMetadata & WithFlowOperationStatus(FlowOperationStatus value)
FlowOperationMetadata & WithFlowRequestTimestamp(FlowRequestTimestampT &&value)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
FlowOperationMetadata & WithFlowOperationId(FlowOperationIdT &&value)
AWS_NETWORKFIREWALL_API FlowOperationMetadata()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String