AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CustomLogSourceResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securitylake/SecurityLake_EXPORTS.h>
9#include <aws/securitylake/model/CustomLogSourceAttributes.h>
10#include <aws/securitylake/model/CustomLogSourceProvider.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityLake {
22namespace Model {
23
31 public:
32 AWS_SECURITYLAKE_API CustomLogSourceResource() = default;
33 AWS_SECURITYLAKE_API CustomLogSourceResource(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const CustomLogSourceAttributes& GetAttributes() const { return m_attributes; }
42 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
43 template <typename AttributesT = CustomLogSourceAttributes>
44 void SetAttributes(AttributesT&& value) {
45 m_attributesHasBeenSet = true;
46 m_attributes = std::forward<AttributesT>(value);
47 }
48 template <typename AttributesT = CustomLogSourceAttributes>
50 SetAttributes(std::forward<AttributesT>(value));
51 return *this;
52 }
54
56
59 inline const CustomLogSourceProvider& GetProvider() const { return m_provider; }
60 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
61 template <typename ProviderT = CustomLogSourceProvider>
62 void SetProvider(ProviderT&& value) {
63 m_providerHasBeenSet = true;
64 m_provider = std::forward<ProviderT>(value);
65 }
66 template <typename ProviderT = CustomLogSourceProvider>
68 SetProvider(std::forward<ProviderT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetSourceName() const { return m_sourceName; }
79 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
80 template <typename SourceNameT = Aws::String>
81 void SetSourceName(SourceNameT&& value) {
82 m_sourceNameHasBeenSet = true;
83 m_sourceName = std::forward<SourceNameT>(value);
84 }
85 template <typename SourceNameT = Aws::String>
87 SetSourceName(std::forward<SourceNameT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
98 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
99 template <typename SourceVersionT = Aws::String>
100 void SetSourceVersion(SourceVersionT&& value) {
101 m_sourceVersionHasBeenSet = true;
102 m_sourceVersion = std::forward<SourceVersionT>(value);
103 }
104 template <typename SourceVersionT = Aws::String>
106 SetSourceVersion(std::forward<SourceVersionT>(value));
107 return *this;
108 }
110 private:
111 CustomLogSourceAttributes m_attributes;
112
113 CustomLogSourceProvider m_provider;
114
115 Aws::String m_sourceName;
116
117 Aws::String m_sourceVersion;
118 bool m_attributesHasBeenSet = false;
119 bool m_providerHasBeenSet = false;
120 bool m_sourceNameHasBeenSet = false;
121 bool m_sourceVersionHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace SecurityLake
126} // namespace Aws
AWS_SECURITYLAKE_API CustomLogSourceResource(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYLAKE_API CustomLogSourceResource()=default
CustomLogSourceResource & WithSourceVersion(SourceVersionT &&value)
CustomLogSourceResource & WithProvider(ProviderT &&value)
CustomLogSourceResource & WithAttributes(AttributesT &&value)
const CustomLogSourceProvider & GetProvider() const
const CustomLogSourceAttributes & GetAttributes() const
CustomLogSourceResource & WithSourceName(SourceNameT &&value)
AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYLAKE_API CustomLogSourceResource & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue