AWS SDK for C++  1.9.159
AWS SDK for C++
PutMetricFilterRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CloudWatchLogs
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "PutMetricFilter"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
43 
47  inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
48 
52  inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
53 
57  inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
58 
62  inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
63 
67  inline PutMetricFilterRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
68 
72  inline PutMetricFilterRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
73 
77  inline PutMetricFilterRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
78 
79 
83  inline const Aws::String& GetFilterName() const{ return m_filterName; }
84 
88  inline bool FilterNameHasBeenSet() const { return m_filterNameHasBeenSet; }
89 
93  inline void SetFilterName(const Aws::String& value) { m_filterNameHasBeenSet = true; m_filterName = value; }
94 
98  inline void SetFilterName(Aws::String&& value) { m_filterNameHasBeenSet = true; m_filterName = std::move(value); }
99 
103  inline void SetFilterName(const char* value) { m_filterNameHasBeenSet = true; m_filterName.assign(value); }
104 
108  inline PutMetricFilterRequest& WithFilterName(const Aws::String& value) { SetFilterName(value); return *this;}
109 
113  inline PutMetricFilterRequest& WithFilterName(Aws::String&& value) { SetFilterName(std::move(value)); return *this;}
114 
118  inline PutMetricFilterRequest& WithFilterName(const char* value) { SetFilterName(value); return *this;}
119 
120 
124  inline const Aws::String& GetFilterPattern() const{ return m_filterPattern; }
125 
129  inline bool FilterPatternHasBeenSet() const { return m_filterPatternHasBeenSet; }
130 
134  inline void SetFilterPattern(const Aws::String& value) { m_filterPatternHasBeenSet = true; m_filterPattern = value; }
135 
139  inline void SetFilterPattern(Aws::String&& value) { m_filterPatternHasBeenSet = true; m_filterPattern = std::move(value); }
140 
144  inline void SetFilterPattern(const char* value) { m_filterPatternHasBeenSet = true; m_filterPattern.assign(value); }
145 
149  inline PutMetricFilterRequest& WithFilterPattern(const Aws::String& value) { SetFilterPattern(value); return *this;}
150 
154  inline PutMetricFilterRequest& WithFilterPattern(Aws::String&& value) { SetFilterPattern(std::move(value)); return *this;}
155 
159  inline PutMetricFilterRequest& WithFilterPattern(const char* value) { SetFilterPattern(value); return *this;}
160 
161 
165  inline const Aws::Vector<MetricTransformation>& GetMetricTransformations() const{ return m_metricTransformations; }
166 
170  inline bool MetricTransformationsHasBeenSet() const { return m_metricTransformationsHasBeenSet; }
171 
175  inline void SetMetricTransformations(const Aws::Vector<MetricTransformation>& value) { m_metricTransformationsHasBeenSet = true; m_metricTransformations = value; }
176 
180  inline void SetMetricTransformations(Aws::Vector<MetricTransformation>&& value) { m_metricTransformationsHasBeenSet = true; m_metricTransformations = std::move(value); }
181 
185  inline PutMetricFilterRequest& WithMetricTransformations(const Aws::Vector<MetricTransformation>& value) { SetMetricTransformations(value); return *this;}
186 
190  inline PutMetricFilterRequest& WithMetricTransformations(Aws::Vector<MetricTransformation>&& value) { SetMetricTransformations(std::move(value)); return *this;}
191 
195  inline PutMetricFilterRequest& AddMetricTransformations(const MetricTransformation& value) { m_metricTransformationsHasBeenSet = true; m_metricTransformations.push_back(value); return *this; }
196 
200  inline PutMetricFilterRequest& AddMetricTransformations(MetricTransformation&& value) { m_metricTransformationsHasBeenSet = true; m_metricTransformations.push_back(std::move(value)); return *this; }
201 
202  private:
203 
204  Aws::String m_logGroupName;
205  bool m_logGroupNameHasBeenSet;
206 
207  Aws::String m_filterName;
208  bool m_filterNameHasBeenSet;
209 
210  Aws::String m_filterPattern;
211  bool m_filterPatternHasBeenSet;
212 
213  Aws::Vector<MetricTransformation> m_metricTransformations;
214  bool m_metricTransformationsHasBeenSet;
215  };
216 
217 } // namespace Model
218 } // namespace CloudWatchLogs
219 } // namespace Aws
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::SetFilterName
void SetFilterName(const Aws::String &value)
Definition: PutMetricFilterRequest.h:93
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::SetLogGroupName
void SetLogGroupName(Aws::String &&value)
Definition: PutMetricFilterRequest.h:57
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::WithFilterName
PutMetricFilterRequest & WithFilterName(const Aws::String &value)
Definition: PutMetricFilterRequest.h:108
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::AddMetricTransformations
PutMetricFilterRequest & AddMetricTransformations(MetricTransformation &&value)
Definition: PutMetricFilterRequest.h:200
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::FilterNameHasBeenSet
bool FilterNameHasBeenSet() const
Definition: PutMetricFilterRequest.h:88
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::WithFilterPattern
PutMetricFilterRequest & WithFilterPattern(const Aws::String &value)
Definition: PutMetricFilterRequest.h:149
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::GetFilterPattern
const Aws::String & GetFilterPattern() const
Definition: PutMetricFilterRequest.h:124
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::LogGroupNameHasBeenSet
bool LogGroupNameHasBeenSet() const
Definition: PutMetricFilterRequest.h:47
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::GetMetricTransformations
const Aws::Vector< MetricTransformation > & GetMetricTransformations() const
Definition: PutMetricFilterRequest.h:165
AWS_CLOUDWATCHLOGS_API
#define AWS_CLOUDWATCHLOGS_API
Definition: CloudWatchLogs_EXPORTS.h:28
Aws::CloudWatchLogs::Model::PutMetricFilterRequest
Definition: PutMetricFilterRequest.h:24
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::WithLogGroupName
PutMetricFilterRequest & WithLogGroupName(Aws::String &&value)
Definition: PutMetricFilterRequest.h:72
MetricTransformation.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::SetFilterPattern
void SetFilterPattern(const char *value)
Definition: PutMetricFilterRequest.h:144
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::SetFilterName
void SetFilterName(Aws::String &&value)
Definition: PutMetricFilterRequest.h:98
CloudWatchLogs_EXPORTS.h
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::FilterPatternHasBeenSet
bool FilterPatternHasBeenSet() const
Definition: PutMetricFilterRequest.h:129
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::WithLogGroupName
PutMetricFilterRequest & WithLogGroupName(const char *value)
Definition: PutMetricFilterRequest.h:77
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::WithFilterName
PutMetricFilterRequest & WithFilterName(const char *value)
Definition: PutMetricFilterRequest.h:118
Aws::CloudWatchLogs::CloudWatchLogsRequest
Definition: CloudWatchLogsRequest.h:17
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::SetLogGroupName
void SetLogGroupName(const char *value)
Definition: PutMetricFilterRequest.h:62
AWSString.h
Aws::CloudWatchLogs::Model::MetricTransformation
Definition: MetricTransformation.h:35
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::SetMetricTransformations
void SetMetricTransformations(const Aws::Vector< MetricTransformation > &value)
Definition: PutMetricFilterRequest.h:175
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::WithFilterPattern
PutMetricFilterRequest & WithFilterPattern(Aws::String &&value)
Definition: PutMetricFilterRequest.h:154
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::SetFilterPattern
void SetFilterPattern(const Aws::String &value)
Definition: PutMetricFilterRequest.h:134
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutMetricFilterRequest.h:32
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::GetFilterName
const Aws::String & GetFilterName() const
Definition: PutMetricFilterRequest.h:83
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::WithFilterName
PutMetricFilterRequest & WithFilterName(Aws::String &&value)
Definition: PutMetricFilterRequest.h:113
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::PutMetricFilterRequest
PutMetricFilterRequest()
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::WithMetricTransformations
PutMetricFilterRequest & WithMetricTransformations(const Aws::Vector< MetricTransformation > &value)
Definition: PutMetricFilterRequest.h:185
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::SetLogGroupName
void SetLogGroupName(const Aws::String &value)
Definition: PutMetricFilterRequest.h:52
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::SetFilterPattern
void SetFilterPattern(Aws::String &&value)
Definition: PutMetricFilterRequest.h:139
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::AddMetricTransformations
PutMetricFilterRequest & AddMetricTransformations(const MetricTransformation &value)
Definition: PutMetricFilterRequest.h:195
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::MetricTransformationsHasBeenSet
bool MetricTransformationsHasBeenSet() const
Definition: PutMetricFilterRequest.h:170
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::SetFilterName
void SetFilterName(const char *value)
Definition: PutMetricFilterRequest.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::WithFilterPattern
PutMetricFilterRequest & WithFilterPattern(const char *value)
Definition: PutMetricFilterRequest.h:159
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::WithLogGroupName
PutMetricFilterRequest & WithLogGroupName(const Aws::String &value)
Definition: PutMetricFilterRequest.h:67
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::GetLogGroupName
const Aws::String & GetLogGroupName() const
Definition: PutMetricFilterRequest.h:42
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::WithMetricTransformations
PutMetricFilterRequest & WithMetricTransformations(Aws::Vector< MetricTransformation > &&value)
Definition: PutMetricFilterRequest.h:190
CloudWatchLogsRequest.h
Aws::CloudWatchLogs::Model::PutMetricFilterRequest::SetMetricTransformations
void SetMetricTransformations(Aws::Vector< MetricTransformation > &&value)
Definition: PutMetricFilterRequest.h:180