AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
53 inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
54 inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
55 inline SourceMetadata& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
56 inline SourceMetadata& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
57 inline SourceMetadata& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
59
61
67 inline const Aws::String& GetSourceUpdateToken() const{ return m_sourceUpdateToken; }
68 inline bool SourceUpdateTokenHasBeenSet() const { return m_sourceUpdateTokenHasBeenSet; }
69 inline void SetSourceUpdateToken(const Aws::String& value) { m_sourceUpdateTokenHasBeenSet = true; m_sourceUpdateToken = value; }
70 inline void SetSourceUpdateToken(Aws::String&& value) { m_sourceUpdateTokenHasBeenSet = true; m_sourceUpdateToken = std::move(value); }
71 inline void SetSourceUpdateToken(const char* value) { m_sourceUpdateTokenHasBeenSet = true; m_sourceUpdateToken.assign(value); }
72 inline SourceMetadata& WithSourceUpdateToken(const Aws::String& value) { SetSourceUpdateToken(value); return *this;}
73 inline SourceMetadata& WithSourceUpdateToken(Aws::String&& value) { SetSourceUpdateToken(std::move(value)); return *this;}
74 inline SourceMetadata& WithSourceUpdateToken(const char* value) { SetSourceUpdateToken(value); return *this;}
76 private:
77
78 Aws::String m_sourceArn;
79 bool m_sourceArnHasBeenSet = false;
80
81 Aws::String m_sourceUpdateToken;
82 bool m_sourceUpdateTokenHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace NetworkFirewall
87} // namespace Aws
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
SourceMetadata & WithSourceUpdateToken(const char *value)
AWS_NETWORKFIREWALL_API SourceMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceMetadata & WithSourceUpdateToken(Aws::String &&value)
SourceMetadata & WithSourceArn(Aws::String &&value)
SourceMetadata & WithSourceUpdateToken(const Aws::String &value)
AWS_NETWORKFIREWALL_API SourceMetadata()
void SetSourceUpdateToken(Aws::String &&value)
SourceMetadata & WithSourceArn(const Aws::String &value)
SourceMetadata & WithSourceArn(const char *value)
void SetSourceArn(const Aws::String &value)
const Aws::String & GetSourceArn() const
AWS_NETWORKFIREWALL_API SourceMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetSourceUpdateToken(const Aws::String &value)
const Aws::String & GetSourceUpdateToken() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue