AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCustomLogSourceRequest.h
1
6#pragma once
7#include <aws/securitylake/SecurityLake_EXPORTS.h>
8#include <aws/securitylake/SecurityLakeRequest.h>
9#include <aws/securitylake/model/CustomLogSourceConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SecurityLake
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SECURITYLAKE_API CreateCustomLogSourceRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateCustomLogSource"; }
33
34 AWS_SECURITYLAKE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const CustomLogSourceConfiguration& GetConfiguration() const{ return m_configuration; }
42 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
43 inline void SetConfiguration(const CustomLogSourceConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
44 inline void SetConfiguration(CustomLogSourceConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
48
50
76 inline const Aws::Vector<Aws::String>& GetEventClasses() const{ return m_eventClasses; }
77 inline bool EventClassesHasBeenSet() const { return m_eventClassesHasBeenSet; }
78 inline void SetEventClasses(const Aws::Vector<Aws::String>& value) { m_eventClassesHasBeenSet = true; m_eventClasses = value; }
79 inline void SetEventClasses(Aws::Vector<Aws::String>&& value) { m_eventClassesHasBeenSet = true; m_eventClasses = std::move(value); }
82 inline CreateCustomLogSourceRequest& AddEventClasses(const Aws::String& value) { m_eventClassesHasBeenSet = true; m_eventClasses.push_back(value); return *this; }
83 inline CreateCustomLogSourceRequest& AddEventClasses(Aws::String&& value) { m_eventClassesHasBeenSet = true; m_eventClasses.push_back(std::move(value)); return *this; }
84 inline CreateCustomLogSourceRequest& AddEventClasses(const char* value) { m_eventClassesHasBeenSet = true; m_eventClasses.push_back(value); return *this; }
86
88
97 inline const Aws::String& GetSourceName() const{ return m_sourceName; }
98 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
99 inline void SetSourceName(const Aws::String& value) { m_sourceNameHasBeenSet = true; m_sourceName = value; }
100 inline void SetSourceName(Aws::String&& value) { m_sourceNameHasBeenSet = true; m_sourceName = std::move(value); }
101 inline void SetSourceName(const char* value) { m_sourceNameHasBeenSet = true; m_sourceName.assign(value); }
102 inline CreateCustomLogSourceRequest& WithSourceName(const Aws::String& value) { SetSourceName(value); return *this;}
103 inline CreateCustomLogSourceRequest& WithSourceName(Aws::String&& value) { SetSourceName(std::move(value)); return *this;}
104 inline CreateCustomLogSourceRequest& WithSourceName(const char* value) { SetSourceName(value); return *this;}
106
108
112 inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; }
113 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
114 inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; }
115 inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); }
116 inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); }
117 inline CreateCustomLogSourceRequest& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;}
118 inline CreateCustomLogSourceRequest& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;}
119 inline CreateCustomLogSourceRequest& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;}
121 private:
122
123 CustomLogSourceConfiguration m_configuration;
124 bool m_configurationHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_eventClasses;
127 bool m_eventClassesHasBeenSet = false;
128
129 Aws::String m_sourceName;
130 bool m_sourceNameHasBeenSet = false;
131
132 Aws::String m_sourceVersion;
133 bool m_sourceVersionHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace SecurityLake
138} // namespace Aws
CreateCustomLogSourceRequest & WithConfiguration(const CustomLogSourceConfiguration &value)
CreateCustomLogSourceRequest & WithSourceVersion(const char *value)
CreateCustomLogSourceRequest & WithSourceName(Aws::String &&value)
CreateCustomLogSourceRequest & WithSourceName(const char *value)
CreateCustomLogSourceRequest & AddEventClasses(const Aws::String &value)
AWS_SECURITYLAKE_API Aws::String SerializePayload() const override
void SetConfiguration(CustomLogSourceConfiguration &&value)
CreateCustomLogSourceRequest & WithSourceVersion(const Aws::String &value)
CreateCustomLogSourceRequest & WithEventClasses(const Aws::Vector< Aws::String > &value)
CreateCustomLogSourceRequest & WithSourceName(const Aws::String &value)
CreateCustomLogSourceRequest & WithEventClasses(Aws::Vector< Aws::String > &&value)
CreateCustomLogSourceRequest & WithSourceVersion(Aws::String &&value)
void SetConfiguration(const CustomLogSourceConfiguration &value)
CreateCustomLogSourceRequest & WithConfiguration(CustomLogSourceConfiguration &&value)
const CustomLogSourceConfiguration & GetConfiguration() const
CreateCustomLogSourceRequest & AddEventClasses(Aws::String &&value)
void SetEventClasses(const Aws::Vector< Aws::String > &value)
CreateCustomLogSourceRequest & AddEventClasses(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector