/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace ApplicationInsights { namespace Model { /** */ class UpdateComponentRequest : public ApplicationInsightsRequest { public: AWS_APPLICATIONINSIGHTS_API UpdateComponentRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateComponent"; } AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override; AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the resource group.

*/ inline const Aws::String& GetResourceGroupName() const{ return m_resourceGroupName; } /** *

The name of the resource group.

*/ inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; } /** *

The name of the resource group.

*/ inline void SetResourceGroupName(const Aws::String& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = value; } /** *

The name of the resource group.

*/ inline void SetResourceGroupName(Aws::String&& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = std::move(value); } /** *

The name of the resource group.

*/ inline void SetResourceGroupName(const char* value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName.assign(value); } /** *

The name of the resource group.

*/ inline UpdateComponentRequest& WithResourceGroupName(const Aws::String& value) { SetResourceGroupName(value); return *this;} /** *

The name of the resource group.

*/ inline UpdateComponentRequest& WithResourceGroupName(Aws::String&& value) { SetResourceGroupName(std::move(value)); return *this;} /** *

The name of the resource group.

*/ inline UpdateComponentRequest& WithResourceGroupName(const char* value) { SetResourceGroupName(value); return *this;} /** *

The name of the component.

*/ inline const Aws::String& GetComponentName() const{ return m_componentName; } /** *

The name of the component.

*/ inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; } /** *

The name of the component.

*/ inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; } /** *

The name of the component.

*/ inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); } /** *

The name of the component.

*/ inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); } /** *

The name of the component.

*/ inline UpdateComponentRequest& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;} /** *

The name of the component.

*/ inline UpdateComponentRequest& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;} /** *

The name of the component.

*/ inline UpdateComponentRequest& WithComponentName(const char* value) { SetComponentName(value); return *this;} /** *

The new name of the component.

*/ inline const Aws::String& GetNewComponentName() const{ return m_newComponentName; } /** *

The new name of the component.

*/ inline bool NewComponentNameHasBeenSet() const { return m_newComponentNameHasBeenSet; } /** *

The new name of the component.

*/ inline void SetNewComponentName(const Aws::String& value) { m_newComponentNameHasBeenSet = true; m_newComponentName = value; } /** *

The new name of the component.

*/ inline void SetNewComponentName(Aws::String&& value) { m_newComponentNameHasBeenSet = true; m_newComponentName = std::move(value); } /** *

The new name of the component.

*/ inline void SetNewComponentName(const char* value) { m_newComponentNameHasBeenSet = true; m_newComponentName.assign(value); } /** *

The new name of the component.

*/ inline UpdateComponentRequest& WithNewComponentName(const Aws::String& value) { SetNewComponentName(value); return *this;} /** *

The new name of the component.

*/ inline UpdateComponentRequest& WithNewComponentName(Aws::String&& value) { SetNewComponentName(std::move(value)); return *this;} /** *

The new name of the component.

*/ inline UpdateComponentRequest& WithNewComponentName(const char* value) { SetNewComponentName(value); return *this;} /** *

The list of resource ARNs that belong to the component.

*/ inline const Aws::Vector& GetResourceList() const{ return m_resourceList; } /** *

The list of resource ARNs that belong to the component.

*/ inline bool ResourceListHasBeenSet() const { return m_resourceListHasBeenSet; } /** *

The list of resource ARNs that belong to the component.

*/ inline void SetResourceList(const Aws::Vector& value) { m_resourceListHasBeenSet = true; m_resourceList = value; } /** *

The list of resource ARNs that belong to the component.

*/ inline void SetResourceList(Aws::Vector&& value) { m_resourceListHasBeenSet = true; m_resourceList = std::move(value); } /** *

The list of resource ARNs that belong to the component.

*/ inline UpdateComponentRequest& WithResourceList(const Aws::Vector& value) { SetResourceList(value); return *this;} /** *

The list of resource ARNs that belong to the component.

*/ inline UpdateComponentRequest& WithResourceList(Aws::Vector&& value) { SetResourceList(std::move(value)); return *this;} /** *

The list of resource ARNs that belong to the component.

*/ inline UpdateComponentRequest& AddResourceList(const Aws::String& value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(value); return *this; } /** *

The list of resource ARNs that belong to the component.

*/ inline UpdateComponentRequest& AddResourceList(Aws::String&& value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(std::move(value)); return *this; } /** *

The list of resource ARNs that belong to the component.

*/ inline UpdateComponentRequest& AddResourceList(const char* value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(value); return *this; } private: Aws::String m_resourceGroupName; bool m_resourceGroupNameHasBeenSet = false; Aws::String m_componentName; bool m_componentNameHasBeenSet = false; Aws::String m_newComponentName; bool m_newComponentNameHasBeenSet = false; Aws::Vector m_resourceList; bool m_resourceListHasBeenSet = false; }; } // namespace Model } // namespace ApplicationInsights } // namespace Aws