AWS SDK for C++  1.9.159
AWS SDK for C++
PutSubscriptionFilterRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CloudWatchLogs
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "PutSubscriptionFilter"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
42 
46  inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
47 
51  inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
52 
56  inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
57 
61  inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
62 
66  inline PutSubscriptionFilterRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
67 
71  inline PutSubscriptionFilterRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
72 
76  inline PutSubscriptionFilterRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
77 
78 
85  inline const Aws::String& GetFilterName() const{ return m_filterName; }
86 
93  inline bool FilterNameHasBeenSet() const { return m_filterNameHasBeenSet; }
94 
101  inline void SetFilterName(const Aws::String& value) { m_filterNameHasBeenSet = true; m_filterName = value; }
102 
109  inline void SetFilterName(Aws::String&& value) { m_filterNameHasBeenSet = true; m_filterName = std::move(value); }
110 
117  inline void SetFilterName(const char* value) { m_filterNameHasBeenSet = true; m_filterName.assign(value); }
118 
125  inline PutSubscriptionFilterRequest& WithFilterName(const Aws::String& value) { SetFilterName(value); return *this;}
126 
133  inline PutSubscriptionFilterRequest& WithFilterName(Aws::String&& value) { SetFilterName(std::move(value)); return *this;}
134 
141  inline PutSubscriptionFilterRequest& WithFilterName(const char* value) { SetFilterName(value); return *this;}
142 
143 
147  inline const Aws::String& GetFilterPattern() const{ return m_filterPattern; }
148 
152  inline bool FilterPatternHasBeenSet() const { return m_filterPatternHasBeenSet; }
153 
157  inline void SetFilterPattern(const Aws::String& value) { m_filterPatternHasBeenSet = true; m_filterPattern = value; }
158 
162  inline void SetFilterPattern(Aws::String&& value) { m_filterPatternHasBeenSet = true; m_filterPattern = std::move(value); }
163 
167  inline void SetFilterPattern(const char* value) { m_filterPatternHasBeenSet = true; m_filterPattern.assign(value); }
168 
172  inline PutSubscriptionFilterRequest& WithFilterPattern(const Aws::String& value) { SetFilterPattern(value); return *this;}
173 
177  inline PutSubscriptionFilterRequest& WithFilterPattern(Aws::String&& value) { SetFilterPattern(std::move(value)); return *this;}
178 
182  inline PutSubscriptionFilterRequest& WithFilterPattern(const char* value) { SetFilterPattern(value); return *this;}
183 
184 
200  inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; }
201 
217  inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
218 
234  inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; }
235 
251  inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); }
252 
268  inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); }
269 
285  inline PutSubscriptionFilterRequest& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;}
286 
302  inline PutSubscriptionFilterRequest& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;}
303 
319  inline PutSubscriptionFilterRequest& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;}
320 
321 
327  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
328 
334  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
335 
341  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
342 
348  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
349 
355  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
356 
362  inline PutSubscriptionFilterRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
363 
369  inline PutSubscriptionFilterRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
370 
376  inline PutSubscriptionFilterRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
377 
378 
385  inline const Distribution& GetDistribution() const{ return m_distribution; }
386 
393  inline bool DistributionHasBeenSet() const { return m_distributionHasBeenSet; }
394 
401  inline void SetDistribution(const Distribution& value) { m_distributionHasBeenSet = true; m_distribution = value; }
402 
409  inline void SetDistribution(Distribution&& value) { m_distributionHasBeenSet = true; m_distribution = std::move(value); }
410 
417  inline PutSubscriptionFilterRequest& WithDistribution(const Distribution& value) { SetDistribution(value); return *this;}
418 
425  inline PutSubscriptionFilterRequest& WithDistribution(Distribution&& value) { SetDistribution(std::move(value)); return *this;}
426 
427  private:
428 
429  Aws::String m_logGroupName;
430  bool m_logGroupNameHasBeenSet;
431 
432  Aws::String m_filterName;
433  bool m_filterNameHasBeenSet;
434 
435  Aws::String m_filterPattern;
436  bool m_filterPatternHasBeenSet;
437 
438  Aws::String m_destinationArn;
439  bool m_destinationArnHasBeenSet;
440 
441  Aws::String m_roleArn;
442  bool m_roleArnHasBeenSet;
443 
444  Distribution m_distribution;
445  bool m_distributionHasBeenSet;
446  };
447 
448 } // namespace Model
449 } // namespace CloudWatchLogs
450 } // namespace Aws
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::LogGroupNameHasBeenSet
bool LogGroupNameHasBeenSet() const
Definition: PutSubscriptionFilterRequest.h:46
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetDistribution
void SetDistribution(const Distribution &value)
Definition: PutSubscriptionFilterRequest.h:401
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithRoleArn
PutSubscriptionFilterRequest & WithRoleArn(const char *value)
Definition: PutSubscriptionFilterRequest.h:376
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetLogGroupName
void SetLogGroupName(const char *value)
Definition: PutSubscriptionFilterRequest.h:61
Aws::CloudWatchLogs::Model::Distribution
Distribution
Definition: Distribution.h:17
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetLogGroupName
void SetLogGroupName(const Aws::String &value)
Definition: PutSubscriptionFilterRequest.h:51
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest
Definition: PutSubscriptionFilterRequest.h:23
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetDestinationArn
void SetDestinationArn(const Aws::String &value)
Definition: PutSubscriptionFilterRequest.h:234
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithDistribution
PutSubscriptionFilterRequest & WithDistribution(Distribution &&value)
Definition: PutSubscriptionFilterRequest.h:425
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetDestinationArn
void SetDestinationArn(const char *value)
Definition: PutSubscriptionFilterRequest.h:268
AWS_CLOUDWATCHLOGS_API
#define AWS_CLOUDWATCHLOGS_API
Definition: CloudWatchLogs_EXPORTS.h:28
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: PutSubscriptionFilterRequest.h:334
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutSubscriptionFilterRequest.h:31
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithRoleArn
PutSubscriptionFilterRequest & WithRoleArn(const Aws::String &value)
Definition: PutSubscriptionFilterRequest.h:362
Distribution.h
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::GetFilterPattern
const Aws::String & GetFilterPattern() const
Definition: PutSubscriptionFilterRequest.h:147
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithFilterName
PutSubscriptionFilterRequest & WithFilterName(Aws::String &&value)
Definition: PutSubscriptionFilterRequest.h:133
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetFilterName
void SetFilterName(const Aws::String &value)
Definition: PutSubscriptionFilterRequest.h:101
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::FilterPatternHasBeenSet
bool FilterPatternHasBeenSet() const
Definition: PutSubscriptionFilterRequest.h:152
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::GetDestinationArn
const Aws::String & GetDestinationArn() const
Definition: PutSubscriptionFilterRequest.h:200
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithFilterName
PutSubscriptionFilterRequest & WithFilterName(const char *value)
Definition: PutSubscriptionFilterRequest.h:141
CloudWatchLogs_EXPORTS.h
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetFilterName
void SetFilterName(const char *value)
Definition: PutSubscriptionFilterRequest.h:117
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: PutSubscriptionFilterRequest.h:348
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithLogGroupName
PutSubscriptionFilterRequest & WithLogGroupName(Aws::String &&value)
Definition: PutSubscriptionFilterRequest.h:71
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: PutSubscriptionFilterRequest.h:327
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithFilterName
PutSubscriptionFilterRequest & WithFilterName(const Aws::String &value)
Definition: PutSubscriptionFilterRequest.h:125
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithDestinationArn
PutSubscriptionFilterRequest & WithDestinationArn(Aws::String &&value)
Definition: PutSubscriptionFilterRequest.h:302
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::GetLogGroupName
const Aws::String & GetLogGroupName() const
Definition: PutSubscriptionFilterRequest.h:41
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithRoleArn
PutSubscriptionFilterRequest & WithRoleArn(Aws::String &&value)
Definition: PutSubscriptionFilterRequest.h:369
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithLogGroupName
PutSubscriptionFilterRequest & WithLogGroupName(const char *value)
Definition: PutSubscriptionFilterRequest.h:76
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithDestinationArn
PutSubscriptionFilterRequest & WithDestinationArn(const Aws::String &value)
Definition: PutSubscriptionFilterRequest.h:285
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetLogGroupName
void SetLogGroupName(Aws::String &&value)
Definition: PutSubscriptionFilterRequest.h:56
Aws::CloudWatchLogs::CloudWatchLogsRequest
Definition: CloudWatchLogsRequest.h:17
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::FilterNameHasBeenSet
bool FilterNameHasBeenSet() const
Definition: PutSubscriptionFilterRequest.h:93
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::DistributionHasBeenSet
bool DistributionHasBeenSet() const
Definition: PutSubscriptionFilterRequest.h:393
AWSString.h
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithLogGroupName
PutSubscriptionFilterRequest & WithLogGroupName(const Aws::String &value)
Definition: PutSubscriptionFilterRequest.h:66
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetFilterPattern
void SetFilterPattern(Aws::String &&value)
Definition: PutSubscriptionFilterRequest.h:162
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::GetFilterName
const Aws::String & GetFilterName() const
Definition: PutSubscriptionFilterRequest.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetDestinationArn
void SetDestinationArn(Aws::String &&value)
Definition: PutSubscriptionFilterRequest.h:251
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithDistribution
PutSubscriptionFilterRequest & WithDistribution(const Distribution &value)
Definition: PutSubscriptionFilterRequest.h:417
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::PutSubscriptionFilterRequest
PutSubscriptionFilterRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: PutSubscriptionFilterRequest.h:341
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithFilterPattern
PutSubscriptionFilterRequest & WithFilterPattern(const Aws::String &value)
Definition: PutSubscriptionFilterRequest.h:172
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::GetDistribution
const Distribution & GetDistribution() const
Definition: PutSubscriptionFilterRequest.h:385
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: PutSubscriptionFilterRequest.h:355
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetFilterName
void SetFilterName(Aws::String &&value)
Definition: PutSubscriptionFilterRequest.h:109
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetFilterPattern
void SetFilterPattern(const char *value)
Definition: PutSubscriptionFilterRequest.h:167
CloudWatchLogsRequest.h
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetFilterPattern
void SetFilterPattern(const Aws::String &value)
Definition: PutSubscriptionFilterRequest.h:157
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::DestinationArnHasBeenSet
bool DestinationArnHasBeenSet() const
Definition: PutSubscriptionFilterRequest.h:217
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::SetDistribution
void SetDistribution(Distribution &&value)
Definition: PutSubscriptionFilterRequest.h:409
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithFilterPattern
PutSubscriptionFilterRequest & WithFilterPattern(Aws::String &&value)
Definition: PutSubscriptionFilterRequest.h:177
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithFilterPattern
PutSubscriptionFilterRequest & WithFilterPattern(const char *value)
Definition: PutSubscriptionFilterRequest.h:182
Aws::CloudWatchLogs::Model::PutSubscriptionFilterRequest::WithDestinationArn
PutSubscriptionFilterRequest & WithDestinationArn(const char *value)
Definition: PutSubscriptionFilterRequest.h:319