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/application-insights/ApplicationInsights_EXPORTS.h>
8 #include <aws/application-insights/ApplicationInsightsRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/application-insights/model/Tier.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ApplicationInsights
16 {
17 namespace Model
18 {
19 
20   /**
21    */
22   class AWS_APPLICATIONINSIGHTS_API DescribeComponentConfigurationRecommendationRequest : public ApplicationInsightsRequest
23   {
24   public:
25     DescribeComponentConfigurationRecommendationRequest();
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.
GetServiceRequestName()31     inline virtual const char* GetServiceRequestName() const override { return "DescribeComponentConfigurationRecommendation"; }
32 
33     Aws::String SerializePayload() const override;
34 
35     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
37 
38     /**
39      * <p>The name of the resource group.</p>
40      */
GetResourceGroupName()41     inline const Aws::String& GetResourceGroupName() const{ return m_resourceGroupName; }
42 
43     /**
44      * <p>The name of the resource group.</p>
45      */
ResourceGroupNameHasBeenSet()46     inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
47 
48     /**
49      * <p>The name of the resource group.</p>
50      */
SetResourceGroupName(const Aws::String & value)51     inline void SetResourceGroupName(const Aws::String& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = value; }
52 
53     /**
54      * <p>The name of the resource group.</p>
55      */
SetResourceGroupName(Aws::String && value)56     inline void SetResourceGroupName(Aws::String&& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = std::move(value); }
57 
58     /**
59      * <p>The name of the resource group.</p>
60      */
SetResourceGroupName(const char * value)61     inline void SetResourceGroupName(const char* value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName.assign(value); }
62 
63     /**
64      * <p>The name of the resource group.</p>
65      */
WithResourceGroupName(const Aws::String & value)66     inline DescribeComponentConfigurationRecommendationRequest& WithResourceGroupName(const Aws::String& value) { SetResourceGroupName(value); return *this;}
67 
68     /**
69      * <p>The name of the resource group.</p>
70      */
WithResourceGroupName(Aws::String && value)71     inline DescribeComponentConfigurationRecommendationRequest& WithResourceGroupName(Aws::String&& value) { SetResourceGroupName(std::move(value)); return *this;}
72 
73     /**
74      * <p>The name of the resource group.</p>
75      */
WithResourceGroupName(const char * value)76     inline DescribeComponentConfigurationRecommendationRequest& WithResourceGroupName(const char* value) { SetResourceGroupName(value); return *this;}
77 
78 
79     /**
80      * <p>The name of the component.</p>
81      */
GetComponentName()82     inline const Aws::String& GetComponentName() const{ return m_componentName; }
83 
84     /**
85      * <p>The name of the component.</p>
86      */
ComponentNameHasBeenSet()87     inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
88 
89     /**
90      * <p>The name of the component.</p>
91      */
SetComponentName(const Aws::String & value)92     inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; }
93 
94     /**
95      * <p>The name of the component.</p>
96      */
SetComponentName(Aws::String && value)97     inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); }
98 
99     /**
100      * <p>The name of the component.</p>
101      */
SetComponentName(const char * value)102     inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); }
103 
104     /**
105      * <p>The name of the component.</p>
106      */
WithComponentName(const Aws::String & value)107     inline DescribeComponentConfigurationRecommendationRequest& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
108 
109     /**
110      * <p>The name of the component.</p>
111      */
WithComponentName(Aws::String && value)112     inline DescribeComponentConfigurationRecommendationRequest& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
113 
114     /**
115      * <p>The name of the component.</p>
116      */
WithComponentName(const char * value)117     inline DescribeComponentConfigurationRecommendationRequest& WithComponentName(const char* value) { SetComponentName(value); return *this;}
118 
119 
120     /**
121      * <p>The tier of the application component. Supported tiers include
122      * <code>DOT_NET_CORE</code>, <code>DOT_NET_WORKER</code>,
123      * <code>DOT_NET_WEB</code>, <code>SQL_SERVER</code>, and <code>DEFAULT</code>.</p>
124      */
GetTier()125     inline const Tier& GetTier() const{ return m_tier; }
126 
127     /**
128      * <p>The tier of the application component. Supported tiers include
129      * <code>DOT_NET_CORE</code>, <code>DOT_NET_WORKER</code>,
130      * <code>DOT_NET_WEB</code>, <code>SQL_SERVER</code>, and <code>DEFAULT</code>.</p>
131      */
TierHasBeenSet()132     inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
133 
134     /**
135      * <p>The tier of the application component. Supported tiers include
136      * <code>DOT_NET_CORE</code>, <code>DOT_NET_WORKER</code>,
137      * <code>DOT_NET_WEB</code>, <code>SQL_SERVER</code>, and <code>DEFAULT</code>.</p>
138      */
SetTier(const Tier & value)139     inline void SetTier(const Tier& value) { m_tierHasBeenSet = true; m_tier = value; }
140 
141     /**
142      * <p>The tier of the application component. Supported tiers include
143      * <code>DOT_NET_CORE</code>, <code>DOT_NET_WORKER</code>,
144      * <code>DOT_NET_WEB</code>, <code>SQL_SERVER</code>, and <code>DEFAULT</code>.</p>
145      */
SetTier(Tier && value)146     inline void SetTier(Tier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
147 
148     /**
149      * <p>The tier of the application component. Supported tiers include
150      * <code>DOT_NET_CORE</code>, <code>DOT_NET_WORKER</code>,
151      * <code>DOT_NET_WEB</code>, <code>SQL_SERVER</code>, and <code>DEFAULT</code>.</p>
152      */
WithTier(const Tier & value)153     inline DescribeComponentConfigurationRecommendationRequest& WithTier(const Tier& value) { SetTier(value); return *this;}
154 
155     /**
156      * <p>The tier of the application component. Supported tiers include
157      * <code>DOT_NET_CORE</code>, <code>DOT_NET_WORKER</code>,
158      * <code>DOT_NET_WEB</code>, <code>SQL_SERVER</code>, and <code>DEFAULT</code>.</p>
159      */
WithTier(Tier && value)160     inline DescribeComponentConfigurationRecommendationRequest& WithTier(Tier&& value) { SetTier(std::move(value)); return *this;}
161 
162   private:
163 
164     Aws::String m_resourceGroupName;
165     bool m_resourceGroupNameHasBeenSet;
166 
167     Aws::String m_componentName;
168     bool m_componentNameHasBeenSet;
169 
170     Tier m_tier;
171     bool m_tierHasBeenSet;
172   };
173 
174 } // namespace Model
175 } // namespace ApplicationInsights
176 } // namespace Aws
177