1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/logs/CloudWatchLogs_EXPORTS.h>
8 #include <aws/logs/CloudWatchLogsRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CloudWatchLogs
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_CLOUDWATCHLOGS_API DeleteSubscriptionFilterRequest : public CloudWatchLogsRequest
22   {
23   public:
24     DeleteSubscriptionFilterRequest();
25 
26     // Service request name is the Operation name which will send this request out,
27     // each operation should has unique request name, so that we can get operation's name from this request.
28     // Note: this is not true for response, multiple operations may have the same response name,
29     // so we can not get operation's name from response.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "DeleteSubscriptionFilter"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>The name of the log group.</p>
39      */
GetLogGroupName()40     inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
41 
42     /**
43      * <p>The name of the log group.</p>
44      */
LogGroupNameHasBeenSet()45     inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
46 
47     /**
48      * <p>The name of the log group.</p>
49      */
SetLogGroupName(const Aws::String & value)50     inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
51 
52     /**
53      * <p>The name of the log group.</p>
54      */
SetLogGroupName(Aws::String && value)55     inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
56 
57     /**
58      * <p>The name of the log group.</p>
59      */
SetLogGroupName(const char * value)60     inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
61 
62     /**
63      * <p>The name of the log group.</p>
64      */
WithLogGroupName(const Aws::String & value)65     inline DeleteSubscriptionFilterRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
66 
67     /**
68      * <p>The name of the log group.</p>
69      */
WithLogGroupName(Aws::String && value)70     inline DeleteSubscriptionFilterRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
71 
72     /**
73      * <p>The name of the log group.</p>
74      */
WithLogGroupName(const char * value)75     inline DeleteSubscriptionFilterRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
76 
77 
78     /**
79      * <p>The name of the subscription filter.</p>
80      */
GetFilterName()81     inline const Aws::String& GetFilterName() const{ return m_filterName; }
82 
83     /**
84      * <p>The name of the subscription filter.</p>
85      */
FilterNameHasBeenSet()86     inline bool FilterNameHasBeenSet() const { return m_filterNameHasBeenSet; }
87 
88     /**
89      * <p>The name of the subscription filter.</p>
90      */
SetFilterName(const Aws::String & value)91     inline void SetFilterName(const Aws::String& value) { m_filterNameHasBeenSet = true; m_filterName = value; }
92 
93     /**
94      * <p>The name of the subscription filter.</p>
95      */
SetFilterName(Aws::String && value)96     inline void SetFilterName(Aws::String&& value) { m_filterNameHasBeenSet = true; m_filterName = std::move(value); }
97 
98     /**
99      * <p>The name of the subscription filter.</p>
100      */
SetFilterName(const char * value)101     inline void SetFilterName(const char* value) { m_filterNameHasBeenSet = true; m_filterName.assign(value); }
102 
103     /**
104      * <p>The name of the subscription filter.</p>
105      */
WithFilterName(const Aws::String & value)106     inline DeleteSubscriptionFilterRequest& WithFilterName(const Aws::String& value) { SetFilterName(value); return *this;}
107 
108     /**
109      * <p>The name of the subscription filter.</p>
110      */
WithFilterName(Aws::String && value)111     inline DeleteSubscriptionFilterRequest& WithFilterName(Aws::String&& value) { SetFilterName(std::move(value)); return *this;}
112 
113     /**
114      * <p>The name of the subscription filter.</p>
115      */
WithFilterName(const char * value)116     inline DeleteSubscriptionFilterRequest& WithFilterName(const char* value) { SetFilterName(value); return *this;}
117 
118   private:
119 
120     Aws::String m_logGroupName;
121     bool m_logGroupNameHasBeenSet;
122 
123     Aws::String m_filterName;
124     bool m_filterNameHasBeenSet;
125   };
126 
127 } // namespace Model
128 } // namespace CloudWatchLogs
129 } // namespace Aws
130