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

The name of the container service for which to delete a registered container * image.

*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *

The name of the container service for which to delete a registered container * image.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the container service for which to delete a registered container * image.

*/ inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *

The name of the container service for which to delete a registered container * image.

*/ inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *

The name of the container service for which to delete a registered container * image.

*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *

The name of the container service for which to delete a registered container * image.

*/ inline DeleteContainerImageRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the container service for which to delete a registered container * image.

*/ inline DeleteContainerImageRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *

The name of the container service for which to delete a registered container * image.

*/ inline DeleteContainerImageRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;} /** *

The name of the container image to delete from the container service.

*

Use the GetContainerImages action to get the name of the * container images that are registered to a container service.

*

Container images sourced from your Lightsail container service, that are * registered and stored on your service, start with a colon (:). For * example, :container-service-1.mystaticwebsite.1. Container images * sourced from a public registry like Docker Hub don't start with a colon. For * example, nginx:latest or nginx.

*/ inline const Aws::String& GetImage() const{ return m_image; } /** *

The name of the container image to delete from the container service.

*

Use the GetContainerImages action to get the name of the * container images that are registered to a container service.

*

Container images sourced from your Lightsail container service, that are * registered and stored on your service, start with a colon (:). For * example, :container-service-1.mystaticwebsite.1. Container images * sourced from a public registry like Docker Hub don't start with a colon. For * example, nginx:latest or nginx.

*/ inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; } /** *

The name of the container image to delete from the container service.

*

Use the GetContainerImages action to get the name of the * container images that are registered to a container service.

*

Container images sourced from your Lightsail container service, that are * registered and stored on your service, start with a colon (:). For * example, :container-service-1.mystaticwebsite.1. Container images * sourced from a public registry like Docker Hub don't start with a colon. For * example, nginx:latest or nginx.

*/ inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; } /** *

The name of the container image to delete from the container service.

*

Use the GetContainerImages action to get the name of the * container images that are registered to a container service.

*

Container images sourced from your Lightsail container service, that are * registered and stored on your service, start with a colon (:). For * example, :container-service-1.mystaticwebsite.1. Container images * sourced from a public registry like Docker Hub don't start with a colon. For * example, nginx:latest or nginx.

*/ inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); } /** *

The name of the container image to delete from the container service.

*

Use the GetContainerImages action to get the name of the * container images that are registered to a container service.

*

Container images sourced from your Lightsail container service, that are * registered and stored on your service, start with a colon (:). For * example, :container-service-1.mystaticwebsite.1. Container images * sourced from a public registry like Docker Hub don't start with a colon. For * example, nginx:latest or nginx.

*/ inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); } /** *

The name of the container image to delete from the container service.

*

Use the GetContainerImages action to get the name of the * container images that are registered to a container service.

*

Container images sourced from your Lightsail container service, that are * registered and stored on your service, start with a colon (:). For * example, :container-service-1.mystaticwebsite.1. Container images * sourced from a public registry like Docker Hub don't start with a colon. For * example, nginx:latest or nginx.

*/ inline DeleteContainerImageRequest& WithImage(const Aws::String& value) { SetImage(value); return *this;} /** *

The name of the container image to delete from the container service.

*

Use the GetContainerImages action to get the name of the * container images that are registered to a container service.

*

Container images sourced from your Lightsail container service, that are * registered and stored on your service, start with a colon (:). For * example, :container-service-1.mystaticwebsite.1. Container images * sourced from a public registry like Docker Hub don't start with a colon. For * example, nginx:latest or nginx.

*/ inline DeleteContainerImageRequest& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;} /** *

The name of the container image to delete from the container service.

*

Use the GetContainerImages action to get the name of the * container images that are registered to a container service.

*

Container images sourced from your Lightsail container service, that are * registered and stored on your service, start with a colon (:). For * example, :container-service-1.mystaticwebsite.1. Container images * sourced from a public registry like Docker Hub don't start with a colon. For * example, nginx:latest or nginx.

*/ inline DeleteContainerImageRequest& WithImage(const char* value) { SetImage(value); return *this;} private: Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; Aws::String m_image; bool m_imageHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws