/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace AppRunner { namespace Model { /** */ class UpdateServiceRequest : public AppRunnerRequest { public: AWS_APPRUNNER_API UpdateServiceRequest(); // 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 "UpdateService"; } AWS_APPRUNNER_API Aws::String SerializePayload() const override; AWS_APPRUNNER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the App Runner service that you want to * update.

*/ inline const Aws::String& GetServiceArn() const{ return m_serviceArn; } /** *

The Amazon Resource Name (ARN) of the App Runner service that you want to * update.

*/ inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the App Runner service that you want to * update.

*/ inline void SetServiceArn(const Aws::String& value) { m_serviceArnHasBeenSet = true; m_serviceArn = value; } /** *

The Amazon Resource Name (ARN) of the App Runner service that you want to * update.

*/ inline void SetServiceArn(Aws::String&& value) { m_serviceArnHasBeenSet = true; m_serviceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the App Runner service that you want to * update.

*/ inline void SetServiceArn(const char* value) { m_serviceArnHasBeenSet = true; m_serviceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the App Runner service that you want to * update.

*/ inline UpdateServiceRequest& WithServiceArn(const Aws::String& value) { SetServiceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the App Runner service that you want to * update.

*/ inline UpdateServiceRequest& WithServiceArn(Aws::String&& value) { SetServiceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the App Runner service that you want to * update.

*/ inline UpdateServiceRequest& WithServiceArn(const char* value) { SetServiceArn(value); return *this;} /** *

The source configuration to apply to the App Runner service.

You can * change the configuration of the code or image repository that the service uses. * However, you can't switch from code to image or the other way around. This means * that you must provide the same structure member of * SourceConfiguration that you originally included when you created * the service. Specifically, you can include either CodeRepository or * ImageRepository. To update the source configuration, set the values * to members of the structure that you include.

*/ inline const SourceConfiguration& GetSourceConfiguration() const{ return m_sourceConfiguration; } /** *

The source configuration to apply to the App Runner service.

You can * change the configuration of the code or image repository that the service uses. * However, you can't switch from code to image or the other way around. This means * that you must provide the same structure member of * SourceConfiguration that you originally included when you created * the service. Specifically, you can include either CodeRepository or * ImageRepository. To update the source configuration, set the values * to members of the structure that you include.

*/ inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; } /** *

The source configuration to apply to the App Runner service.

You can * change the configuration of the code or image repository that the service uses. * However, you can't switch from code to image or the other way around. This means * that you must provide the same structure member of * SourceConfiguration that you originally included when you created * the service. Specifically, you can include either CodeRepository or * ImageRepository. To update the source configuration, set the values * to members of the structure that you include.

*/ inline void SetSourceConfiguration(const SourceConfiguration& value) { m_sourceConfigurationHasBeenSet = true; m_sourceConfiguration = value; } /** *

The source configuration to apply to the App Runner service.

You can * change the configuration of the code or image repository that the service uses. * However, you can't switch from code to image or the other way around. This means * that you must provide the same structure member of * SourceConfiguration that you originally included when you created * the service. Specifically, you can include either CodeRepository or * ImageRepository. To update the source configuration, set the values * to members of the structure that you include.

*/ inline void SetSourceConfiguration(SourceConfiguration&& value) { m_sourceConfigurationHasBeenSet = true; m_sourceConfiguration = std::move(value); } /** *

The source configuration to apply to the App Runner service.

You can * change the configuration of the code or image repository that the service uses. * However, you can't switch from code to image or the other way around. This means * that you must provide the same structure member of * SourceConfiguration that you originally included when you created * the service. Specifically, you can include either CodeRepository or * ImageRepository. To update the source configuration, set the values * to members of the structure that you include.

*/ inline UpdateServiceRequest& WithSourceConfiguration(const SourceConfiguration& value) { SetSourceConfiguration(value); return *this;} /** *

The source configuration to apply to the App Runner service.

You can * change the configuration of the code or image repository that the service uses. * However, you can't switch from code to image or the other way around. This means * that you must provide the same structure member of * SourceConfiguration that you originally included when you created * the service. Specifically, you can include either CodeRepository or * ImageRepository. To update the source configuration, set the values * to members of the structure that you include.

*/ inline UpdateServiceRequest& WithSourceConfiguration(SourceConfiguration&& value) { SetSourceConfiguration(std::move(value)); return *this;} /** *

The runtime configuration to apply to instances (scaling units) of your * service.

*/ inline const InstanceConfiguration& GetInstanceConfiguration() const{ return m_instanceConfiguration; } /** *

The runtime configuration to apply to instances (scaling units) of your * service.

*/ inline bool InstanceConfigurationHasBeenSet() const { return m_instanceConfigurationHasBeenSet; } /** *

The runtime configuration to apply to instances (scaling units) of your * service.

*/ inline void SetInstanceConfiguration(const InstanceConfiguration& value) { m_instanceConfigurationHasBeenSet = true; m_instanceConfiguration = value; } /** *

The runtime configuration to apply to instances (scaling units) of your * service.

*/ inline void SetInstanceConfiguration(InstanceConfiguration&& value) { m_instanceConfigurationHasBeenSet = true; m_instanceConfiguration = std::move(value); } /** *

The runtime configuration to apply to instances (scaling units) of your * service.

*/ inline UpdateServiceRequest& WithInstanceConfiguration(const InstanceConfiguration& value) { SetInstanceConfiguration(value); return *this;} /** *

The runtime configuration to apply to instances (scaling units) of your * service.

*/ inline UpdateServiceRequest& WithInstanceConfiguration(InstanceConfiguration&& value) { SetInstanceConfiguration(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an App Runner automatic scaling * configuration resource that you want to associate with the App Runner * service.

*/ inline const Aws::String& GetAutoScalingConfigurationArn() const{ return m_autoScalingConfigurationArn; } /** *

The Amazon Resource Name (ARN) of an App Runner automatic scaling * configuration resource that you want to associate with the App Runner * service.

*/ inline bool AutoScalingConfigurationArnHasBeenSet() const { return m_autoScalingConfigurationArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of an App Runner automatic scaling * configuration resource that you want to associate with the App Runner * service.

*/ inline void SetAutoScalingConfigurationArn(const Aws::String& value) { m_autoScalingConfigurationArnHasBeenSet = true; m_autoScalingConfigurationArn = value; } /** *

The Amazon Resource Name (ARN) of an App Runner automatic scaling * configuration resource that you want to associate with the App Runner * service.

*/ inline void SetAutoScalingConfigurationArn(Aws::String&& value) { m_autoScalingConfigurationArnHasBeenSet = true; m_autoScalingConfigurationArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of an App Runner automatic scaling * configuration resource that you want to associate with the App Runner * service.

*/ inline void SetAutoScalingConfigurationArn(const char* value) { m_autoScalingConfigurationArnHasBeenSet = true; m_autoScalingConfigurationArn.assign(value); } /** *

The Amazon Resource Name (ARN) of an App Runner automatic scaling * configuration resource that you want to associate with the App Runner * service.

*/ inline UpdateServiceRequest& WithAutoScalingConfigurationArn(const Aws::String& value) { SetAutoScalingConfigurationArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of an App Runner automatic scaling * configuration resource that you want to associate with the App Runner * service.

*/ inline UpdateServiceRequest& WithAutoScalingConfigurationArn(Aws::String&& value) { SetAutoScalingConfigurationArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an App Runner automatic scaling * configuration resource that you want to associate with the App Runner * service.

*/ inline UpdateServiceRequest& WithAutoScalingConfigurationArn(const char* value) { SetAutoScalingConfigurationArn(value); return *this;} /** *

The settings for the health check that App Runner performs to monitor the * health of the App Runner service.

*/ inline const HealthCheckConfiguration& GetHealthCheckConfiguration() const{ return m_healthCheckConfiguration; } /** *

The settings for the health check that App Runner performs to monitor the * health of the App Runner service.

*/ inline bool HealthCheckConfigurationHasBeenSet() const { return m_healthCheckConfigurationHasBeenSet; } /** *

The settings for the health check that App Runner performs to monitor the * health of the App Runner service.

*/ inline void SetHealthCheckConfiguration(const HealthCheckConfiguration& value) { m_healthCheckConfigurationHasBeenSet = true; m_healthCheckConfiguration = value; } /** *

The settings for the health check that App Runner performs to monitor the * health of the App Runner service.

*/ inline void SetHealthCheckConfiguration(HealthCheckConfiguration&& value) { m_healthCheckConfigurationHasBeenSet = true; m_healthCheckConfiguration = std::move(value); } /** *

The settings for the health check that App Runner performs to monitor the * health of the App Runner service.

*/ inline UpdateServiceRequest& WithHealthCheckConfiguration(const HealthCheckConfiguration& value) { SetHealthCheckConfiguration(value); return *this;} /** *

The settings for the health check that App Runner performs to monitor the * health of the App Runner service.

*/ inline UpdateServiceRequest& WithHealthCheckConfiguration(HealthCheckConfiguration&& value) { SetHealthCheckConfiguration(std::move(value)); return *this;} /** *

Configuration settings related to network traffic of the web application that * the App Runner service runs.

*/ inline const NetworkConfiguration& GetNetworkConfiguration() const{ return m_networkConfiguration; } /** *

Configuration settings related to network traffic of the web application that * the App Runner service runs.

*/ inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; } /** *

Configuration settings related to network traffic of the web application that * the App Runner service runs.

*/ inline void SetNetworkConfiguration(const NetworkConfiguration& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = value; } /** *

Configuration settings related to network traffic of the web application that * the App Runner service runs.

*/ inline void SetNetworkConfiguration(NetworkConfiguration&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::move(value); } /** *

Configuration settings related to network traffic of the web application that * the App Runner service runs.

*/ inline UpdateServiceRequest& WithNetworkConfiguration(const NetworkConfiguration& value) { SetNetworkConfiguration(value); return *this;} /** *

Configuration settings related to network traffic of the web application that * the App Runner service runs.

*/ inline UpdateServiceRequest& WithNetworkConfiguration(NetworkConfiguration&& value) { SetNetworkConfiguration(std::move(value)); return *this;} /** *

The observability configuration of your service.

*/ inline const ServiceObservabilityConfiguration& GetObservabilityConfiguration() const{ return m_observabilityConfiguration; } /** *

The observability configuration of your service.

*/ inline bool ObservabilityConfigurationHasBeenSet() const { return m_observabilityConfigurationHasBeenSet; } /** *

The observability configuration of your service.

*/ inline void SetObservabilityConfiguration(const ServiceObservabilityConfiguration& value) { m_observabilityConfigurationHasBeenSet = true; m_observabilityConfiguration = value; } /** *

The observability configuration of your service.

*/ inline void SetObservabilityConfiguration(ServiceObservabilityConfiguration&& value) { m_observabilityConfigurationHasBeenSet = true; m_observabilityConfiguration = std::move(value); } /** *

The observability configuration of your service.

*/ inline UpdateServiceRequest& WithObservabilityConfiguration(const ServiceObservabilityConfiguration& value) { SetObservabilityConfiguration(value); return *this;} /** *

The observability configuration of your service.

*/ inline UpdateServiceRequest& WithObservabilityConfiguration(ServiceObservabilityConfiguration&& value) { SetObservabilityConfiguration(std::move(value)); return *this;} private: Aws::String m_serviceArn; bool m_serviceArnHasBeenSet = false; SourceConfiguration m_sourceConfiguration; bool m_sourceConfigurationHasBeenSet = false; InstanceConfiguration m_instanceConfiguration; bool m_instanceConfigurationHasBeenSet = false; Aws::String m_autoScalingConfigurationArn; bool m_autoScalingConfigurationArnHasBeenSet = false; HealthCheckConfiguration m_healthCheckConfiguration; bool m_healthCheckConfigurationHasBeenSet = false; NetworkConfiguration m_networkConfiguration; bool m_networkConfigurationHasBeenSet = false; ServiceObservabilityConfiguration m_observabilityConfiguration; bool m_observabilityConfigurationHasBeenSet = false; }; } // namespace Model } // namespace AppRunner } // namespace Aws