/** * 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 RegisterContainerImageRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API RegisterContainerImageRequest(); // 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 "RegisterContainerImage"; } 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 register a container * image.

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

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

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

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

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

The name of the container service for which to register a 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 register a container * image.

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

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

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

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

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

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

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

The label for the container image when it's registered to the container * service.

Use a descriptive label that you can use to track the different * versions of your registered container images.

Use the * GetContainerImages action to return the container images registered * to a Lightsail container service. The label is the * <imagelabel> portion of the following image name example:

*
  • :container-service-1.<imagelabel>.1

  • *

If the name of your container service is * mycontainerservice, and the label that you specify is * mystaticwebsite, then the name of the registered container image * will be :mycontainerservice.mystaticwebsite.1.

The number at * the end of these image name examples represents the version of the registered * container image. If you push and register another container image to the same * Lightsail container service, with the same label, then the version number for * the new registered container image will be 2. If you push and * register another container image, the version number will be 3, and * so on.

*/ inline const Aws::String& GetLabel() const{ return m_label; } /** *

The label for the container image when it's registered to the container * service.

Use a descriptive label that you can use to track the different * versions of your registered container images.

Use the * GetContainerImages action to return the container images registered * to a Lightsail container service. The label is the * <imagelabel> portion of the following image name example:

*
  • :container-service-1.<imagelabel>.1

  • *

If the name of your container service is * mycontainerservice, and the label that you specify is * mystaticwebsite, then the name of the registered container image * will be :mycontainerservice.mystaticwebsite.1.

The number at * the end of these image name examples represents the version of the registered * container image. If you push and register another container image to the same * Lightsail container service, with the same label, then the version number for * the new registered container image will be 2. If you push and * register another container image, the version number will be 3, and * so on.

*/ inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; } /** *

The label for the container image when it's registered to the container * service.

Use a descriptive label that you can use to track the different * versions of your registered container images.

Use the * GetContainerImages action to return the container images registered * to a Lightsail container service. The label is the * <imagelabel> portion of the following image name example:

*
  • :container-service-1.<imagelabel>.1

  • *

If the name of your container service is * mycontainerservice, and the label that you specify is * mystaticwebsite, then the name of the registered container image * will be :mycontainerservice.mystaticwebsite.1.

The number at * the end of these image name examples represents the version of the registered * container image. If you push and register another container image to the same * Lightsail container service, with the same label, then the version number for * the new registered container image will be 2. If you push and * register another container image, the version number will be 3, and * so on.

*/ inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; } /** *

The label for the container image when it's registered to the container * service.

Use a descriptive label that you can use to track the different * versions of your registered container images.

Use the * GetContainerImages action to return the container images registered * to a Lightsail container service. The label is the * <imagelabel> portion of the following image name example:

*
  • :container-service-1.<imagelabel>.1

  • *

If the name of your container service is * mycontainerservice, and the label that you specify is * mystaticwebsite, then the name of the registered container image * will be :mycontainerservice.mystaticwebsite.1.

The number at * the end of these image name examples represents the version of the registered * container image. If you push and register another container image to the same * Lightsail container service, with the same label, then the version number for * the new registered container image will be 2. If you push and * register another container image, the version number will be 3, and * so on.

*/ inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); } /** *

The label for the container image when it's registered to the container * service.

Use a descriptive label that you can use to track the different * versions of your registered container images.

Use the * GetContainerImages action to return the container images registered * to a Lightsail container service. The label is the * <imagelabel> portion of the following image name example:

*
  • :container-service-1.<imagelabel>.1

  • *

If the name of your container service is * mycontainerservice, and the label that you specify is * mystaticwebsite, then the name of the registered container image * will be :mycontainerservice.mystaticwebsite.1.

The number at * the end of these image name examples represents the version of the registered * container image. If you push and register another container image to the same * Lightsail container service, with the same label, then the version number for * the new registered container image will be 2. If you push and * register another container image, the version number will be 3, and * so on.

*/ inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); } /** *

The label for the container image when it's registered to the container * service.

Use a descriptive label that you can use to track the different * versions of your registered container images.

Use the * GetContainerImages action to return the container images registered * to a Lightsail container service. The label is the * <imagelabel> portion of the following image name example:

*
  • :container-service-1.<imagelabel>.1

  • *

If the name of your container service is * mycontainerservice, and the label that you specify is * mystaticwebsite, then the name of the registered container image * will be :mycontainerservice.mystaticwebsite.1.

The number at * the end of these image name examples represents the version of the registered * container image. If you push and register another container image to the same * Lightsail container service, with the same label, then the version number for * the new registered container image will be 2. If you push and * register another container image, the version number will be 3, and * so on.

*/ inline RegisterContainerImageRequest& WithLabel(const Aws::String& value) { SetLabel(value); return *this;} /** *

The label for the container image when it's registered to the container * service.

Use a descriptive label that you can use to track the different * versions of your registered container images.

Use the * GetContainerImages action to return the container images registered * to a Lightsail container service. The label is the * <imagelabel> portion of the following image name example:

*
  • :container-service-1.<imagelabel>.1

  • *

If the name of your container service is * mycontainerservice, and the label that you specify is * mystaticwebsite, then the name of the registered container image * will be :mycontainerservice.mystaticwebsite.1.

The number at * the end of these image name examples represents the version of the registered * container image. If you push and register another container image to the same * Lightsail container service, with the same label, then the version number for * the new registered container image will be 2. If you push and * register another container image, the version number will be 3, and * so on.

*/ inline RegisterContainerImageRequest& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;} /** *

The label for the container image when it's registered to the container * service.

Use a descriptive label that you can use to track the different * versions of your registered container images.

Use the * GetContainerImages action to return the container images registered * to a Lightsail container service. The label is the * <imagelabel> portion of the following image name example:

*
  • :container-service-1.<imagelabel>.1

  • *

If the name of your container service is * mycontainerservice, and the label that you specify is * mystaticwebsite, then the name of the registered container image * will be :mycontainerservice.mystaticwebsite.1.

The number at * the end of these image name examples represents the version of the registered * container image. If you push and register another container image to the same * Lightsail container service, with the same label, then the version number for * the new registered container image will be 2. If you push and * register another container image, the version number will be 3, and * so on.

*/ inline RegisterContainerImageRequest& WithLabel(const char* value) { SetLabel(value); return *this;} /** *

The digest of the container image to be registered.

*/ inline const Aws::String& GetDigest() const{ return m_digest; } /** *

The digest of the container image to be registered.

*/ inline bool DigestHasBeenSet() const { return m_digestHasBeenSet; } /** *

The digest of the container image to be registered.

*/ inline void SetDigest(const Aws::String& value) { m_digestHasBeenSet = true; m_digest = value; } /** *

The digest of the container image to be registered.

*/ inline void SetDigest(Aws::String&& value) { m_digestHasBeenSet = true; m_digest = std::move(value); } /** *

The digest of the container image to be registered.

*/ inline void SetDigest(const char* value) { m_digestHasBeenSet = true; m_digest.assign(value); } /** *

The digest of the container image to be registered.

*/ inline RegisterContainerImageRequest& WithDigest(const Aws::String& value) { SetDigest(value); return *this;} /** *

The digest of the container image to be registered.

*/ inline RegisterContainerImageRequest& WithDigest(Aws::String&& value) { SetDigest(std::move(value)); return *this;} /** *

The digest of the container image to be registered.

*/ inline RegisterContainerImageRequest& WithDigest(const char* value) { SetDigest(value); return *this;} private: Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; Aws::String m_label; bool m_labelHasBeenSet = false; Aws::String m_digest; bool m_digestHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws