AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SourceMetadata.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NetworkFirewall
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_NETWORKFIREWALL_API SourceMetadata() = default;
40 AWS_NETWORKFIREWALL_API SourceMetadata(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKFIREWALL_API SourceMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
51 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
52 template<typename SourceArnT = Aws::String>
53 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::forward<SourceArnT>(value); }
54 template<typename SourceArnT = Aws::String>
55 SourceMetadata& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
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) { m_sourceUpdateTokenHasBeenSet = true; m_sourceUpdateToken = std::forward<SourceUpdateTokenT>(value); }
69 template<typename SourceUpdateTokenT = Aws::String>
70 SourceMetadata& WithSourceUpdateToken(SourceUpdateTokenT&& value) { SetSourceUpdateToken(std::forward<SourceUpdateTokenT>(value)); return *this;}
72 private:
73
74 Aws::String m_sourceArn;
75 bool m_sourceArnHasBeenSet = false;
76
77 Aws::String m_sourceUpdateToken;
78 bool m_sourceUpdateTokenHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace NetworkFirewall
83} // namespace Aws
void SetSourceUpdateToken(SourceUpdateTokenT &&value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKFIREWALL_API SourceMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceMetadata & WithSourceArn(SourceArnT &&value)
const Aws::String & GetSourceArn() const
AWS_NETWORKFIREWALL_API SourceMetadata(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue