AWS SDK for C++  0.14.3
AWS SDK for C++
SubscriptionFilter.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace CloudWatchLogs
29 {
30 namespace Model
31 {
32 
34  {
35  public:
38  SubscriptionFilter& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
42  inline const Aws::String& GetFilterName() const{ return m_filterName; }
43 
44 
45  inline void SetFilterName(const Aws::String& value) { m_filterNameHasBeenSet = true; m_filterName = value; }
46 
47 
48  inline void SetFilterName(Aws::String&& value) { m_filterNameHasBeenSet = true; m_filterName = value; }
49 
50 
51  inline void SetFilterName(const char* value) { m_filterNameHasBeenSet = true; m_filterName.assign(value); }
52 
53 
54  inline SubscriptionFilter& WithFilterName(const Aws::String& value) { SetFilterName(value); return *this;}
55 
56 
57  inline SubscriptionFilter& WithFilterName(Aws::String&& value) { SetFilterName(value); return *this;}
58 
59 
60  inline SubscriptionFilter& WithFilterName(const char* value) { SetFilterName(value); return *this;}
61 
62 
63  inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
64 
65 
66  inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
67 
68 
69  inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
70 
71 
72  inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
73 
74 
75  inline SubscriptionFilter& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
76 
77 
78  inline SubscriptionFilter& WithLogGroupName(Aws::String&& value) { SetLogGroupName(value); return *this;}
79 
80 
81  inline SubscriptionFilter& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
82 
83 
84  inline const Aws::String& GetFilterPattern() const{ return m_filterPattern; }
85 
86 
87  inline void SetFilterPattern(const Aws::String& value) { m_filterPatternHasBeenSet = true; m_filterPattern = value; }
88 
89 
90  inline void SetFilterPattern(Aws::String&& value) { m_filterPatternHasBeenSet = true; m_filterPattern = value; }
91 
92 
93  inline void SetFilterPattern(const char* value) { m_filterPatternHasBeenSet = true; m_filterPattern.assign(value); }
94 
95 
96  inline SubscriptionFilter& WithFilterPattern(const Aws::String& value) { SetFilterPattern(value); return *this;}
97 
98 
99  inline SubscriptionFilter& WithFilterPattern(Aws::String&& value) { SetFilterPattern(value); return *this;}
100 
101 
102  inline SubscriptionFilter& WithFilterPattern(const char* value) { SetFilterPattern(value); return *this;}
103 
104 
105  inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; }
106 
107 
108  inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; }
109 
110 
111  inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; }
112 
113 
114  inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); }
115 
116 
117  inline SubscriptionFilter& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;}
118 
119 
120  inline SubscriptionFilter& WithDestinationArn(Aws::String&& value) { SetDestinationArn(value); return *this;}
121 
122 
123  inline SubscriptionFilter& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;}
124 
125 
126  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
127 
128 
129  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
130 
131 
132  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
133 
134 
135  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
136 
137 
138  inline SubscriptionFilter& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
139 
140 
141  inline SubscriptionFilter& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
142 
143 
144  inline SubscriptionFilter& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
145 
146 
147  inline long long GetCreationTime() const{ return m_creationTime; }
148 
149 
150  inline void SetCreationTime(long long value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
151 
152 
153  inline SubscriptionFilter& WithCreationTime(long long value) { SetCreationTime(value); return *this;}
154 
155  private:
156  Aws::String m_filterName;
157  bool m_filterNameHasBeenSet;
158  Aws::String m_logGroupName;
159  bool m_logGroupNameHasBeenSet;
160  Aws::String m_filterPattern;
161  bool m_filterPatternHasBeenSet;
162  Aws::String m_destinationArn;
163  bool m_destinationArnHasBeenSet;
164  Aws::String m_roleArn;
165  bool m_roleArnHasBeenSet;
166  long long m_creationTime;
167  bool m_creationTimeHasBeenSet;
168  };
169 
170 } // namespace Model
171 } // namespace CloudWatchLogs
172 } // namespace Aws
SubscriptionFilter & WithFilterPattern(const char *value)
SubscriptionFilter & WithLogGroupName(const Aws::String &value)
SubscriptionFilter & WithFilterName(const Aws::String &value)
void SetFilterPattern(const Aws::String &value)
SubscriptionFilter & WithFilterPattern(const Aws::String &value)
SubscriptionFilter & WithRoleArn(const char *value)
SubscriptionFilter & WithFilterName(Aws::String &&value)
SubscriptionFilter & WithDestinationArn(const Aws::String &value)
SubscriptionFilter & WithFilterName(const char *value)
#define AWS_CLOUDWATCHLOGS_API
SubscriptionFilter & WithDestinationArn(Aws::String &&value)
SubscriptionFilter & WithDestinationArn(const char *value)
SubscriptionFilter & WithRoleArn(Aws::String &&value)
void SetFilterName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SubscriptionFilter & WithCreationTime(long long value)
SubscriptionFilter & WithLogGroupName(const char *value)
SubscriptionFilter & WithLogGroupName(Aws::String &&value)
SubscriptionFilter & WithRoleArn(const Aws::String &value)
SubscriptionFilter & WithFilterPattern(Aws::String &&value)
void SetDestinationArn(const Aws::String &value)
void SetLogGroupName(const Aws::String &value)
JSON (JavaScript Object Notation).