/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { /** *

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

*/ class PrivateRegistryAccess { public: AWS_LIGHTSAIL_API PrivateRegistryAccess(); AWS_LIGHTSAIL_API PrivateRegistryAccess(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API PrivateRegistryAccess& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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