AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateCustomLogSourceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securitylake/SecurityLakeRequest.h>
10#include <aws/securitylake/SecurityLake_EXPORTS.h>
11#include <aws/securitylake/model/CustomLogSourceConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecurityLake {
17namespace Model {
18
22 public:
23 AWS_SECURITYLAKE_API CreateCustomLogSourceRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateCustomLogSource"; }
30
31 AWS_SECURITYLAKE_API Aws::String SerializePayload() const override;
32
34
37 inline const CustomLogSourceConfiguration& GetConfiguration() const { return m_configuration; }
38 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
39 template <typename ConfigurationT = CustomLogSourceConfiguration>
40 void SetConfiguration(ConfigurationT&& value) {
41 m_configurationHasBeenSet = true;
42 m_configuration = std::forward<ConfigurationT>(value);
43 }
44 template <typename ConfigurationT = CustomLogSourceConfiguration>
46 SetConfiguration(std::forward<ConfigurationT>(value));
47 return *this;
48 }
50
52
59 inline const Aws::Vector<Aws::String>& GetEventClasses() const { return m_eventClasses; }
60 inline bool EventClassesHasBeenSet() const { return m_eventClassesHasBeenSet; }
61 template <typename EventClassesT = Aws::Vector<Aws::String>>
62 void SetEventClasses(EventClassesT&& value) {
63 m_eventClassesHasBeenSet = true;
64 m_eventClasses = std::forward<EventClassesT>(value);
65 }
66 template <typename EventClassesT = Aws::Vector<Aws::String>>
68 SetEventClasses(std::forward<EventClassesT>(value));
69 return *this;
70 }
71 template <typename EventClassesT = Aws::String>
73 m_eventClassesHasBeenSet = true;
74 m_eventClasses.emplace_back(std::forward<EventClassesT>(value));
75 return *this;
76 }
78
80
89 inline const Aws::String& GetSourceName() const { return m_sourceName; }
90 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
91 template <typename SourceNameT = Aws::String>
92 void SetSourceName(SourceNameT&& value) {
93 m_sourceNameHasBeenSet = true;
94 m_sourceName = std::forward<SourceNameT>(value);
95 }
96 template <typename SourceNameT = Aws::String>
98 SetSourceName(std::forward<SourceNameT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
109 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
110 template <typename SourceVersionT = Aws::String>
111 void SetSourceVersion(SourceVersionT&& value) {
112 m_sourceVersionHasBeenSet = true;
113 m_sourceVersion = std::forward<SourceVersionT>(value);
114 }
115 template <typename SourceVersionT = Aws::String>
117 SetSourceVersion(std::forward<SourceVersionT>(value));
118 return *this;
119 }
121 private:
122 CustomLogSourceConfiguration m_configuration;
123
124 Aws::Vector<Aws::String> m_eventClasses;
125
126 Aws::String m_sourceName;
127
128 Aws::String m_sourceVersion;
129 bool m_configurationHasBeenSet = false;
130 bool m_eventClassesHasBeenSet = false;
131 bool m_sourceNameHasBeenSet = false;
132 bool m_sourceVersionHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace SecurityLake
137} // namespace Aws
CreateCustomLogSourceRequest & WithEventClasses(EventClassesT &&value)
CreateCustomLogSourceRequest & WithSourceVersion(SourceVersionT &&value)
AWS_SECURITYLAKE_API Aws::String SerializePayload() const override
CreateCustomLogSourceRequest & WithConfiguration(ConfigurationT &&value)
CreateCustomLogSourceRequest & AddEventClasses(EventClassesT &&value)
const CustomLogSourceConfiguration & GetConfiguration() const
CreateCustomLogSourceRequest & WithSourceName(SourceNameT &&value)
AWS_SECURITYLAKE_API CreateCustomLogSourceRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector