AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PutTransformerRequest.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/logs/CloudWatchLogsRequest.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11#include <aws/logs/model/Processor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudWatchLogs {
17namespace Model {
18
22 public:
23 AWS_CLOUDWATCHLOGS_API PutTransformerRequest() = 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 "PutTransformer"; }
30
31 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
32
33 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Aws::String& GetLogGroupIdentifier() const { return m_logGroupIdentifier; }
41 inline bool LogGroupIdentifierHasBeenSet() const { return m_logGroupIdentifierHasBeenSet; }
42 template <typename LogGroupIdentifierT = Aws::String>
43 void SetLogGroupIdentifier(LogGroupIdentifierT&& value) {
44 m_logGroupIdentifierHasBeenSet = true;
45 m_logGroupIdentifier = std::forward<LogGroupIdentifierT>(value);
46 }
47 template <typename LogGroupIdentifierT = Aws::String>
48 PutTransformerRequest& WithLogGroupIdentifier(LogGroupIdentifierT&& value) {
49 SetLogGroupIdentifier(std::forward<LogGroupIdentifierT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::Vector<Processor>& GetTransformerConfig() const { return m_transformerConfig; }
61 inline bool TransformerConfigHasBeenSet() const { return m_transformerConfigHasBeenSet; }
62 template <typename TransformerConfigT = Aws::Vector<Processor>>
63 void SetTransformerConfig(TransformerConfigT&& value) {
64 m_transformerConfigHasBeenSet = true;
65 m_transformerConfig = std::forward<TransformerConfigT>(value);
66 }
67 template <typename TransformerConfigT = Aws::Vector<Processor>>
68 PutTransformerRequest& WithTransformerConfig(TransformerConfigT&& value) {
69 SetTransformerConfig(std::forward<TransformerConfigT>(value));
70 return *this;
71 }
72 template <typename TransformerConfigT = Processor>
73 PutTransformerRequest& AddTransformerConfig(TransformerConfigT&& value) {
74 m_transformerConfigHasBeenSet = true;
75 m_transformerConfig.emplace_back(std::forward<TransformerConfigT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_logGroupIdentifier;
81
82 Aws::Vector<Processor> m_transformerConfig;
83 bool m_logGroupIdentifierHasBeenSet = false;
84 bool m_transformerConfigHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace CloudWatchLogs
89} // namespace Aws
PutTransformerRequest & WithTransformerConfig(TransformerConfigT &&value)
AWS_CLOUDWATCHLOGS_API PutTransformerRequest()=default
virtual const char * GetServiceRequestName() const override
void SetLogGroupIdentifier(LogGroupIdentifierT &&value)
const Aws::Vector< Processor > & GetTransformerConfig() const
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutTransformerRequest & AddTransformerConfig(TransformerConfigT &&value)
PutTransformerRequest & WithLogGroupIdentifier(LogGroupIdentifierT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector