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/core/utils/memory/stl/AWSVector.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 UpdateComponentRequest : public ApplicationInsightsRequest 23 { 24 public: 25 UpdateComponentRequest(); 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 "UpdateComponent"; } 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 UpdateComponentRequest& 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 UpdateComponentRequest& 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 UpdateComponentRequest& 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 UpdateComponentRequest& 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 UpdateComponentRequest& 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 UpdateComponentRequest& WithComponentName(const char* value) { SetComponentName(value); return *this;} 118 119 120 /** 121 * <p>The new name of the component.</p> 122 */ GetNewComponentName()123 inline const Aws::String& GetNewComponentName() const{ return m_newComponentName; } 124 125 /** 126 * <p>The new name of the component.</p> 127 */ NewComponentNameHasBeenSet()128 inline bool NewComponentNameHasBeenSet() const { return m_newComponentNameHasBeenSet; } 129 130 /** 131 * <p>The new name of the component.</p> 132 */ SetNewComponentName(const Aws::String & value)133 inline void SetNewComponentName(const Aws::String& value) { m_newComponentNameHasBeenSet = true; m_newComponentName = value; } 134 135 /** 136 * <p>The new name of the component.</p> 137 */ SetNewComponentName(Aws::String && value)138 inline void SetNewComponentName(Aws::String&& value) { m_newComponentNameHasBeenSet = true; m_newComponentName = std::move(value); } 139 140 /** 141 * <p>The new name of the component.</p> 142 */ SetNewComponentName(const char * value)143 inline void SetNewComponentName(const char* value) { m_newComponentNameHasBeenSet = true; m_newComponentName.assign(value); } 144 145 /** 146 * <p>The new name of the component.</p> 147 */ WithNewComponentName(const Aws::String & value)148 inline UpdateComponentRequest& WithNewComponentName(const Aws::String& value) { SetNewComponentName(value); return *this;} 149 150 /** 151 * <p>The new name of the component.</p> 152 */ WithNewComponentName(Aws::String && value)153 inline UpdateComponentRequest& WithNewComponentName(Aws::String&& value) { SetNewComponentName(std::move(value)); return *this;} 154 155 /** 156 * <p>The new name of the component.</p> 157 */ WithNewComponentName(const char * value)158 inline UpdateComponentRequest& WithNewComponentName(const char* value) { SetNewComponentName(value); return *this;} 159 160 161 /** 162 * <p>The list of resource ARNs that belong to the component.</p> 163 */ GetResourceList()164 inline const Aws::Vector<Aws::String>& GetResourceList() const{ return m_resourceList; } 165 166 /** 167 * <p>The list of resource ARNs that belong to the component.</p> 168 */ ResourceListHasBeenSet()169 inline bool ResourceListHasBeenSet() const { return m_resourceListHasBeenSet; } 170 171 /** 172 * <p>The list of resource ARNs that belong to the component.</p> 173 */ SetResourceList(const Aws::Vector<Aws::String> & value)174 inline void SetResourceList(const Aws::Vector<Aws::String>& value) { m_resourceListHasBeenSet = true; m_resourceList = value; } 175 176 /** 177 * <p>The list of resource ARNs that belong to the component.</p> 178 */ SetResourceList(Aws::Vector<Aws::String> && value)179 inline void SetResourceList(Aws::Vector<Aws::String>&& value) { m_resourceListHasBeenSet = true; m_resourceList = std::move(value); } 180 181 /** 182 * <p>The list of resource ARNs that belong to the component.</p> 183 */ WithResourceList(const Aws::Vector<Aws::String> & value)184 inline UpdateComponentRequest& WithResourceList(const Aws::Vector<Aws::String>& value) { SetResourceList(value); return *this;} 185 186 /** 187 * <p>The list of resource ARNs that belong to the component.</p> 188 */ WithResourceList(Aws::Vector<Aws::String> && value)189 inline UpdateComponentRequest& WithResourceList(Aws::Vector<Aws::String>&& value) { SetResourceList(std::move(value)); return *this;} 190 191 /** 192 * <p>The list of resource ARNs that belong to the component.</p> 193 */ AddResourceList(const Aws::String & value)194 inline UpdateComponentRequest& AddResourceList(const Aws::String& value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(value); return *this; } 195 196 /** 197 * <p>The list of resource ARNs that belong to the component.</p> 198 */ AddResourceList(Aws::String && value)199 inline UpdateComponentRequest& AddResourceList(Aws::String&& value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(std::move(value)); return *this; } 200 201 /** 202 * <p>The list of resource ARNs that belong to the component.</p> 203 */ AddResourceList(const char * value)204 inline UpdateComponentRequest& AddResourceList(const char* value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(value); return *this; } 205 206 private: 207 208 Aws::String m_resourceGroupName; 209 bool m_resourceGroupNameHasBeenSet; 210 211 Aws::String m_componentName; 212 bool m_componentNameHasBeenSet; 213 214 Aws::String m_newComponentName; 215 bool m_newComponentNameHasBeenSet; 216 217 Aws::Vector<Aws::String> m_resourceList; 218 bool m_resourceListHasBeenSet; 219 }; 220 221 } // namespace Model 222 } // namespace ApplicationInsights 223 } // namespace Aws 224