AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CustomLogSourceResource.h
1
6#pragma once
7#include <aws/securitylake/SecurityLake_EXPORTS.h>
8#include <aws/securitylake/model/CustomLogSourceAttributes.h>
9#include <aws/securitylake/model/CustomLogSourceProvider.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityLake
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SECURITYLAKE_API CustomLogSourceResource() = default;
38 AWS_SECURITYLAKE_API CustomLogSourceResource(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const CustomLogSourceAttributes& GetAttributes() const { return m_attributes; }
48 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
49 template<typename AttributesT = CustomLogSourceAttributes>
50 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
51 template<typename AttributesT = CustomLogSourceAttributes>
52 CustomLogSourceResource& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
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) { m_providerHasBeenSet = true; m_provider = std::forward<ProviderT>(value); }
63 template<typename ProviderT = CustomLogSourceProvider>
64 CustomLogSourceResource& WithProvider(ProviderT&& value) { SetProvider(std::forward<ProviderT>(value)); return *this;}
66
68
72 inline const Aws::String& GetSourceName() const { return m_sourceName; }
73 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
74 template<typename SourceNameT = Aws::String>
75 void SetSourceName(SourceNameT&& value) { m_sourceNameHasBeenSet = true; m_sourceName = std::forward<SourceNameT>(value); }
76 template<typename SourceNameT = Aws::String>
77 CustomLogSourceResource& WithSourceName(SourceNameT&& value) { SetSourceName(std::forward<SourceNameT>(value)); return *this;}
79
81
85 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
86 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
87 template<typename SourceVersionT = Aws::String>
88 void SetSourceVersion(SourceVersionT&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::forward<SourceVersionT>(value); }
89 template<typename SourceVersionT = Aws::String>
90 CustomLogSourceResource& WithSourceVersion(SourceVersionT&& value) { SetSourceVersion(std::forward<SourceVersionT>(value)); return *this;}
92 private:
93
94 CustomLogSourceAttributes m_attributes;
95 bool m_attributesHasBeenSet = false;
96
97 CustomLogSourceProvider m_provider;
98 bool m_providerHasBeenSet = false;
99
100 Aws::String m_sourceName;
101 bool m_sourceNameHasBeenSet = false;
102
103 Aws::String m_sourceVersion;
104 bool m_sourceVersionHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace SecurityLake
109} // 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