AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAttributes(const CustomLogSourceAttributes& value) { m_attributesHasBeenSet = true; m_attributes = value; }
50 inline void SetAttributes(CustomLogSourceAttributes&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
52 inline CustomLogSourceResource& WithAttributes(CustomLogSourceAttributes&& value) { SetAttributes(std::move(value)); return *this;}
54
56
59 inline const CustomLogSourceProvider& GetProvider() const{ return m_provider; }
60 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
61 inline void SetProvider(const CustomLogSourceProvider& value) { m_providerHasBeenSet = true; m_provider = value; }
62 inline void SetProvider(CustomLogSourceProvider&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); }
63 inline CustomLogSourceResource& WithProvider(const CustomLogSourceProvider& value) { SetProvider(value); return *this;}
64 inline CustomLogSourceResource& WithProvider(CustomLogSourceProvider&& value) { SetProvider(std::move(value)); return *this;}
66
68
72 inline const Aws::String& GetSourceName() const{ return m_sourceName; }
73 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
74 inline void SetSourceName(const Aws::String& value) { m_sourceNameHasBeenSet = true; m_sourceName = value; }
75 inline void SetSourceName(Aws::String&& value) { m_sourceNameHasBeenSet = true; m_sourceName = std::move(value); }
76 inline void SetSourceName(const char* value) { m_sourceNameHasBeenSet = true; m_sourceName.assign(value); }
77 inline CustomLogSourceResource& WithSourceName(const Aws::String& value) { SetSourceName(value); return *this;}
78 inline CustomLogSourceResource& WithSourceName(Aws::String&& value) { SetSourceName(std::move(value)); return *this;}
79 inline CustomLogSourceResource& WithSourceName(const char* value) { SetSourceName(value); return *this;}
81
83
87 inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; }
88 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
89 inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; }
90 inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); }
91 inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); }
92 inline CustomLogSourceResource& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;}
93 inline CustomLogSourceResource& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;}
94 inline CustomLogSourceResource& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;}
96 private:
97
98 CustomLogSourceAttributes m_attributes;
99 bool m_attributesHasBeenSet = false;
100
101 CustomLogSourceProvider m_provider;
102 bool m_providerHasBeenSet = false;
103
104 Aws::String m_sourceName;
105 bool m_sourceNameHasBeenSet = false;
106
107 Aws::String m_sourceVersion;
108 bool m_sourceVersionHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace SecurityLake
113} // namespace Aws
AWS_SECURITYLAKE_API CustomLogSourceResource(Aws::Utils::Json::JsonView jsonValue)
void SetProvider(CustomLogSourceProvider &&value)
void SetAttributes(CustomLogSourceAttributes &&value)
CustomLogSourceResource & WithProvider(CustomLogSourceProvider &&value)
CustomLogSourceResource & WithAttributes(CustomLogSourceAttributes &&value)
CustomLogSourceResource & WithSourceName(const char *value)
const CustomLogSourceProvider & GetProvider() const
CustomLogSourceResource & WithAttributes(const CustomLogSourceAttributes &value)
const CustomLogSourceAttributes & GetAttributes() const
CustomLogSourceResource & WithSourceName(Aws::String &&value)
CustomLogSourceResource & WithSourceVersion(const char *value)
AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttributes(const CustomLogSourceAttributes &value)
AWS_SECURITYLAKE_API CustomLogSourceResource & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomLogSourceResource & WithSourceVersion(Aws::String &&value)
CustomLogSourceResource & WithSourceName(const Aws::String &value)
CustomLogSourceResource & WithSourceVersion(const Aws::String &value)
void SetProvider(const CustomLogSourceProvider &value)
CustomLogSourceResource & WithProvider(const CustomLogSourceProvider &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue