AWS SDK for C++  0.14.3
AWS SDK for C++
MetricFilter.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace CloudWatchLogs
31 {
32 namespace Model
33 {
34 
41  {
42  public:
43  MetricFilter();
44  MetricFilter(const Aws::Utils::Json::JsonValue& jsonValue);
45  MetricFilter& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
48 
49  inline const Aws::String& GetFilterName() const{ return m_filterName; }
50 
51 
52  inline void SetFilterName(const Aws::String& value) { m_filterNameHasBeenSet = true; m_filterName = value; }
53 
54 
55  inline void SetFilterName(Aws::String&& value) { m_filterNameHasBeenSet = true; m_filterName = value; }
56 
57 
58  inline void SetFilterName(const char* value) { m_filterNameHasBeenSet = true; m_filterName.assign(value); }
59 
60 
61  inline MetricFilter& WithFilterName(const Aws::String& value) { SetFilterName(value); return *this;}
62 
63 
64  inline MetricFilter& WithFilterName(Aws::String&& value) { SetFilterName(value); return *this;}
65 
66 
67  inline MetricFilter& WithFilterName(const char* value) { SetFilterName(value); return *this;}
68 
69 
70  inline const Aws::String& GetFilterPattern() const{ return m_filterPattern; }
71 
72 
73  inline void SetFilterPattern(const Aws::String& value) { m_filterPatternHasBeenSet = true; m_filterPattern = value; }
74 
75 
76  inline void SetFilterPattern(Aws::String&& value) { m_filterPatternHasBeenSet = true; m_filterPattern = value; }
77 
78 
79  inline void SetFilterPattern(const char* value) { m_filterPatternHasBeenSet = true; m_filterPattern.assign(value); }
80 
81 
82  inline MetricFilter& WithFilterPattern(const Aws::String& value) { SetFilterPattern(value); return *this;}
83 
84 
85  inline MetricFilter& WithFilterPattern(Aws::String&& value) { SetFilterPattern(value); return *this;}
86 
87 
88  inline MetricFilter& WithFilterPattern(const char* value) { SetFilterPattern(value); return *this;}
89 
90 
91  inline const Aws::Vector<MetricTransformation>& GetMetricTransformations() const{ return m_metricTransformations; }
92 
93 
94  inline void SetMetricTransformations(const Aws::Vector<MetricTransformation>& value) { m_metricTransformationsHasBeenSet = true; m_metricTransformations = value; }
95 
96 
97  inline void SetMetricTransformations(Aws::Vector<MetricTransformation>&& value) { m_metricTransformationsHasBeenSet = true; m_metricTransformations = value; }
98 
99 
100  inline MetricFilter& WithMetricTransformations(const Aws::Vector<MetricTransformation>& value) { SetMetricTransformations(value); return *this;}
101 
102 
103  inline MetricFilter& WithMetricTransformations(Aws::Vector<MetricTransformation>&& value) { SetMetricTransformations(value); return *this;}
104 
105 
106  inline MetricFilter& AddMetricTransformations(const MetricTransformation& value) { m_metricTransformationsHasBeenSet = true; m_metricTransformations.push_back(value); return *this; }
107 
108 
109  inline MetricFilter& AddMetricTransformations(MetricTransformation&& value) { m_metricTransformationsHasBeenSet = true; m_metricTransformations.push_back(value); return *this; }
110 
111 
112  inline long long GetCreationTime() const{ return m_creationTime; }
113 
114 
115  inline void SetCreationTime(long long value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
116 
117 
118  inline MetricFilter& WithCreationTime(long long value) { SetCreationTime(value); return *this;}
119 
120  private:
121  Aws::String m_filterName;
122  bool m_filterNameHasBeenSet;
123  Aws::String m_filterPattern;
124  bool m_filterPatternHasBeenSet;
125  Aws::Vector<MetricTransformation> m_metricTransformations;
126  bool m_metricTransformationsHasBeenSet;
127  long long m_creationTime;
128  bool m_creationTimeHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace CloudWatchLogs
133 } // namespace Aws
MetricFilter & WithFilterName(const Aws::String &value)
Definition: MetricFilter.h:61
MetricFilter & WithFilterName(Aws::String &&value)
Definition: MetricFilter.h:64
MetricFilter & AddMetricTransformations(MetricTransformation &&value)
Definition: MetricFilter.h:109
MetricFilter & WithCreationTime(long long value)
Definition: MetricFilter.h:118
MetricFilter & WithFilterPattern(const Aws::String &value)
Definition: MetricFilter.h:82
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetFilterName(const char *value)
Definition: MetricFilter.h:58
MetricFilter & WithFilterPattern(const char *value)
Definition: MetricFilter.h:88
#define AWS_CLOUDWATCHLOGS_API
void SetFilterPattern(Aws::String &&value)
Definition: MetricFilter.h:76
void SetMetricTransformations(const Aws::Vector< MetricTransformation > &value)
Definition: MetricFilter.h:94
MetricFilter & WithFilterPattern(Aws::String &&value)
Definition: MetricFilter.h:85
MetricFilter & WithMetricTransformations(Aws::Vector< MetricTransformation > &&value)
Definition: MetricFilter.h:103
const Aws::String & GetFilterPattern() const
Definition: MetricFilter.h:70
void SetMetricTransformations(Aws::Vector< MetricTransformation > &&value)
Definition: MetricFilter.h:97
void SetFilterPattern(const Aws::String &value)
Definition: MetricFilter.h:73
MetricFilter & WithFilterName(const char *value)
Definition: MetricFilter.h:67
MetricFilter & WithMetricTransformations(const Aws::Vector< MetricTransformation > &value)
Definition: MetricFilter.h:100
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetFilterName(Aws::String &&value)
Definition: MetricFilter.h:55
const Aws::Vector< MetricTransformation > & GetMetricTransformations() const
Definition: MetricFilter.h:91
void SetFilterName(const Aws::String &value)
Definition: MetricFilter.h:52
void SetFilterPattern(const char *value)
Definition: MetricFilter.h:79
const Aws::String & GetFilterName() const
Definition: MetricFilter.h:49
MetricFilter & AddMetricTransformations(const MetricTransformation &value)
Definition: MetricFilter.h:106
JSON (JavaScript Object Notation).