/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the configuration for 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 that describes the activation status of the role that you can use * to grant a Lightsail container service access to Amazon ECR private * repositories. If the role is activated, the Amazon Resource Name (ARN) of the * role is also listed.
*/ inline const ContainerServiceECRImagePullerRole& GetEcrImagePullerRole() const{ return m_ecrImagePullerRole; } /** *An object that describes the activation status of the role that you can use * to grant a Lightsail container service access to Amazon ECR private * repositories. If the role is activated, the Amazon Resource Name (ARN) of the * role is also listed.
*/ inline bool EcrImagePullerRoleHasBeenSet() const { return m_ecrImagePullerRoleHasBeenSet; } /** *An object that describes the activation status of the role that you can use * to grant a Lightsail container service access to Amazon ECR private * repositories. If the role is activated, the Amazon Resource Name (ARN) of the * role is also listed.
*/ inline void SetEcrImagePullerRole(const ContainerServiceECRImagePullerRole& value) { m_ecrImagePullerRoleHasBeenSet = true; m_ecrImagePullerRole = value; } /** *An object that describes the activation status of the role that you can use * to grant a Lightsail container service access to Amazon ECR private * repositories. If the role is activated, the Amazon Resource Name (ARN) of the * role is also listed.
*/ inline void SetEcrImagePullerRole(ContainerServiceECRImagePullerRole&& value) { m_ecrImagePullerRoleHasBeenSet = true; m_ecrImagePullerRole = std::move(value); } /** *An object that describes the activation status of the role that you can use * to grant a Lightsail container service access to Amazon ECR private * repositories. If the role is activated, the Amazon Resource Name (ARN) of the * role is also listed.
*/ inline PrivateRegistryAccess& WithEcrImagePullerRole(const ContainerServiceECRImagePullerRole& value) { SetEcrImagePullerRole(value); return *this;} /** *An object that describes the activation status of the role that you can use * to grant a Lightsail container service access to Amazon ECR private * repositories. If the role is activated, the Amazon Resource Name (ARN) of the * role is also listed.
*/ inline PrivateRegistryAccess& WithEcrImagePullerRole(ContainerServiceECRImagePullerRole&& value) { SetEcrImagePullerRole(std::move(value)); return *this;} private: ContainerServiceECRImagePullerRole m_ecrImagePullerRole; bool m_ecrImagePullerRoleHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws