/** * 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 UpdateComponentConfigurationRequest : public ApplicationInsightsRequest { public: AWS_APPLICATIONINSIGHTS_API UpdateComponentConfigurationRequest(); // 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 "UpdateComponentConfiguration"; } 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 UpdateComponentConfigurationRequest& WithResourceGroupName(const Aws::String& value) { SetResourceGroupName(value); return *this;} /** *

The name of the resource group.

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

The name of the resource group.

*/ inline UpdateComponentConfigurationRequest& 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 UpdateComponentConfigurationRequest& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;} /** *

The name of the component.

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

The name of the component.

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

Indicates whether the application component is monitored.

*/ inline bool GetMonitor() const{ return m_monitor; } /** *

Indicates whether the application component is monitored.

*/ inline bool MonitorHasBeenSet() const { return m_monitorHasBeenSet; } /** *

Indicates whether the application component is monitored.

*/ inline void SetMonitor(bool value) { m_monitorHasBeenSet = true; m_monitor = value; } /** *

Indicates whether the application component is monitored.

*/ inline UpdateComponentConfigurationRequest& WithMonitor(bool value) { SetMonitor(value); return *this;} /** *

The tier of the application component.

*/ inline const Tier& GetTier() const{ return m_tier; } /** *

The tier of the application component.

*/ inline bool TierHasBeenSet() const { return m_tierHasBeenSet; } /** *

The tier of the application component.

*/ inline void SetTier(const Tier& value) { m_tierHasBeenSet = true; m_tier = value; } /** *

The tier of the application component.

*/ inline void SetTier(Tier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); } /** *

The tier of the application component.

*/ inline UpdateComponentConfigurationRequest& WithTier(const Tier& value) { SetTier(value); return *this;} /** *

The tier of the application component.

*/ inline UpdateComponentConfigurationRequest& WithTier(Tier&& value) { SetTier(std::move(value)); return *this;} /** *

The configuration settings of the component. The value is the escaped JSON of * the configuration. For more information about the JSON format, see Working * with JSON. You can send a request to * DescribeComponentConfigurationRecommendation to see the recommended * configuration for a component. For the complete format of the component * configuration file, see Component * Configuration.

*/ inline const Aws::String& GetComponentConfiguration() const{ return m_componentConfiguration; } /** *

The configuration settings of the component. The value is the escaped JSON of * the configuration. For more information about the JSON format, see Working * with JSON. You can send a request to * DescribeComponentConfigurationRecommendation to see the recommended * configuration for a component. For the complete format of the component * configuration file, see Component * Configuration.

*/ inline bool ComponentConfigurationHasBeenSet() const { return m_componentConfigurationHasBeenSet; } /** *

The configuration settings of the component. The value is the escaped JSON of * the configuration. For more information about the JSON format, see Working * with JSON. You can send a request to * DescribeComponentConfigurationRecommendation to see the recommended * configuration for a component. For the complete format of the component * configuration file, see Component * Configuration.

*/ inline void SetComponentConfiguration(const Aws::String& value) { m_componentConfigurationHasBeenSet = true; m_componentConfiguration = value; } /** *

The configuration settings of the component. The value is the escaped JSON of * the configuration. For more information about the JSON format, see Working * with JSON. You can send a request to * DescribeComponentConfigurationRecommendation to see the recommended * configuration for a component. For the complete format of the component * configuration file, see Component * Configuration.

*/ inline void SetComponentConfiguration(Aws::String&& value) { m_componentConfigurationHasBeenSet = true; m_componentConfiguration = std::move(value); } /** *

The configuration settings of the component. The value is the escaped JSON of * the configuration. For more information about the JSON format, see Working * with JSON. You can send a request to * DescribeComponentConfigurationRecommendation to see the recommended * configuration for a component. For the complete format of the component * configuration file, see Component * Configuration.

*/ inline void SetComponentConfiguration(const char* value) { m_componentConfigurationHasBeenSet = true; m_componentConfiguration.assign(value); } /** *

The configuration settings of the component. The value is the escaped JSON of * the configuration. For more information about the JSON format, see Working * with JSON. You can send a request to * DescribeComponentConfigurationRecommendation to see the recommended * configuration for a component. For the complete format of the component * configuration file, see Component * Configuration.

*/ inline UpdateComponentConfigurationRequest& WithComponentConfiguration(const Aws::String& value) { SetComponentConfiguration(value); return *this;} /** *

The configuration settings of the component. The value is the escaped JSON of * the configuration. For more information about the JSON format, see Working * with JSON. You can send a request to * DescribeComponentConfigurationRecommendation to see the recommended * configuration for a component. For the complete format of the component * configuration file, see Component * Configuration.

*/ inline UpdateComponentConfigurationRequest& WithComponentConfiguration(Aws::String&& value) { SetComponentConfiguration(std::move(value)); return *this;} /** *

The configuration settings of the component. The value is the escaped JSON of * the configuration. For more information about the JSON format, see Working * with JSON. You can send a request to * DescribeComponentConfigurationRecommendation to see the recommended * configuration for a component. For the complete format of the component * configuration file, see Component * Configuration.

*/ inline UpdateComponentConfigurationRequest& WithComponentConfiguration(const char* value) { SetComponentConfiguration(value); return *this;} /** *

Automatically configures the component by applying the recommended * configurations.

*/ inline bool GetAutoConfigEnabled() const{ return m_autoConfigEnabled; } /** *

Automatically configures the component by applying the recommended * configurations.

*/ inline bool AutoConfigEnabledHasBeenSet() const { return m_autoConfigEnabledHasBeenSet; } /** *

Automatically configures the component by applying the recommended * configurations.

*/ inline void SetAutoConfigEnabled(bool value) { m_autoConfigEnabledHasBeenSet = true; m_autoConfigEnabled = value; } /** *

Automatically configures the component by applying the recommended * configurations.

*/ inline UpdateComponentConfigurationRequest& WithAutoConfigEnabled(bool value) { SetAutoConfigEnabled(value); return *this;} private: Aws::String m_resourceGroupName; bool m_resourceGroupNameHasBeenSet = false; Aws::String m_componentName; bool m_componentNameHasBeenSet = false; bool m_monitor; bool m_monitorHasBeenSet = false; Tier m_tier; bool m_tierHasBeenSet = false; Aws::String m_componentConfiguration; bool m_componentConfigurationHasBeenSet = false; bool m_autoConfigEnabled; bool m_autoConfigEnabledHasBeenSet = false; }; } // namespace Model } // namespace ApplicationInsights } // namespace Aws