AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
SourceMetadata.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
33 public:
34 AWS_NETWORKFIREWALL_API SourceMetadata() = default;
35 AWS_NETWORKFIREWALL_API SourceMetadata(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_NETWORKFIREWALL_API SourceMetadata& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
44 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
45 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
46 template <typename SourceArnT = Aws::String>
47 void SetSourceArn(SourceArnT&& value) {
48 m_sourceArnHasBeenSet = true;
49 m_sourceArn = std::forward<SourceArnT>(value);
50 }
51 template <typename SourceArnT = Aws::String>
52 SourceMetadata& WithSourceArn(SourceArnT&& value) {
53 SetSourceArn(std::forward<SourceArnT>(value));
54 return *this;
55 }
57
59
65 inline const Aws::String& GetSourceUpdateToken() const { return m_sourceUpdateToken; }
66 inline bool SourceUpdateTokenHasBeenSet() const { return m_sourceUpdateTokenHasBeenSet; }
67 template <typename SourceUpdateTokenT = Aws::String>
68 void SetSourceUpdateToken(SourceUpdateTokenT&& value) {
69 m_sourceUpdateTokenHasBeenSet = true;
70 m_sourceUpdateToken = std::forward<SourceUpdateTokenT>(value);
71 }
72 template <typename SourceUpdateTokenT = Aws::String>
73 SourceMetadata& WithSourceUpdateToken(SourceUpdateTokenT&& value) {
74 SetSourceUpdateToken(std::forward<SourceUpdateTokenT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_sourceArn;
80
81 Aws::String m_sourceUpdateToken;
82 bool m_sourceArnHasBeenSet = false;
83 bool m_sourceUpdateTokenHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace NetworkFirewall
88} // namespace Aws
void SetSourceUpdateToken(SourceUpdateTokenT &&value)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_NETWORKFIREWALL_API SourceMetadata(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API SourceMetadata & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SourceMetadata & WithSourceArn(SourceArnT &&value)
const Aws::String & GetSourceArn() const
AWS_NETWORKFIREWALL_API SourceMetadata()=default
SourceMetadata & WithSourceUpdateToken(SourceUpdateTokenT &&value)
const Aws::String & GetSourceUpdateToken() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String