/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a request to configure an Amazon Lightsail container service to
* access private container image repositories, such as Amazon Elastic Container
* Registry (Amazon ECR) private repositories. For more information, see Configuring
* access to an Amazon ECR private repository for an Amazon Lightsail container
* service in the Amazon Lightsail Developer Guide.See
* Also:
AWS
* API Reference
An object to describe a request to activate or deactivate the role that you * can use to grant an Amazon Lightsail container service access to Amazon Elastic * Container Registry (Amazon ECR) private repositories.
*/ inline const ContainerServiceECRImagePullerRoleRequest& GetEcrImagePullerRole() const{ return m_ecrImagePullerRole; } /** *An object to describe a request to activate or deactivate the role that you * can use to grant an Amazon Lightsail container service access to Amazon Elastic * Container Registry (Amazon ECR) private repositories.
*/ inline bool EcrImagePullerRoleHasBeenSet() const { return m_ecrImagePullerRoleHasBeenSet; } /** *An object to describe a request to activate or deactivate the role that you * can use to grant an Amazon Lightsail container service access to Amazon Elastic * Container Registry (Amazon ECR) private repositories.
*/ inline void SetEcrImagePullerRole(const ContainerServiceECRImagePullerRoleRequest& value) { m_ecrImagePullerRoleHasBeenSet = true; m_ecrImagePullerRole = value; } /** *An object to describe a request to activate or deactivate the role that you * can use to grant an Amazon Lightsail container service access to Amazon Elastic * Container Registry (Amazon ECR) private repositories.
*/ inline void SetEcrImagePullerRole(ContainerServiceECRImagePullerRoleRequest&& value) { m_ecrImagePullerRoleHasBeenSet = true; m_ecrImagePullerRole = std::move(value); } /** *An object to describe a request to activate or deactivate the role that you * can use to grant an Amazon Lightsail container service access to Amazon Elastic * Container Registry (Amazon ECR) private repositories.
*/ inline PrivateRegistryAccessRequest& WithEcrImagePullerRole(const ContainerServiceECRImagePullerRoleRequest& value) { SetEcrImagePullerRole(value); return *this;} /** *An object to describe a request to activate or deactivate the role that you * can use to grant an Amazon Lightsail container service access to Amazon Elastic * Container Registry (Amazon ECR) private repositories.
*/ inline PrivateRegistryAccessRequest& WithEcrImagePullerRole(ContainerServiceECRImagePullerRoleRequest&& value) { SetEcrImagePullerRole(std::move(value)); return *this;} private: ContainerServiceECRImagePullerRoleRequest m_ecrImagePullerRole; bool m_ecrImagePullerRoleHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws