/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECRPublic { namespace Model { /** *

An object representing the aliases for a public registry. A public registry * is given an alias when it's created. However, a custom alias can be set using * the Amazon ECR console. For more information, see Registries * in the Amazon Elastic Container Registry User Guide.

See * Also:

AWS * API Reference

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

The name of the registry alias.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the registry alias.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the registry alias.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the registry alias.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the registry alias.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the registry alias.

*/ inline RegistryAlias& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the registry alias.

*/ inline RegistryAlias& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the registry alias.

*/ inline RegistryAlias& WithName(const char* value) { SetName(value); return *this;} /** *

The status of the registry alias.

*/ inline const RegistryAliasStatus& GetStatus() const{ return m_status; } /** *

The status of the registry alias.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the registry alias.

*/ inline void SetStatus(const RegistryAliasStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the registry alias.

*/ inline void SetStatus(RegistryAliasStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the registry alias.

*/ inline RegistryAlias& WithStatus(const RegistryAliasStatus& value) { SetStatus(value); return *this;} /** *

The status of the registry alias.

*/ inline RegistryAlias& WithStatus(RegistryAliasStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Indicates whether the registry alias is the primary alias for the registry. * If true, the alias is the primary registry alias and is displayed in both the * repository URL and the image URI used in the docker pull commands * on the Amazon ECR Public Gallery.

A registry alias that isn't the * primary registry alias can be used in the repository URI in a docker * pull command.

*/ inline bool GetPrimaryRegistryAlias() const{ return m_primaryRegistryAlias; } /** *

Indicates whether the registry alias is the primary alias for the registry. * If true, the alias is the primary registry alias and is displayed in both the * repository URL and the image URI used in the docker pull commands * on the Amazon ECR Public Gallery.

A registry alias that isn't the * primary registry alias can be used in the repository URI in a docker * pull command.

*/ inline bool PrimaryRegistryAliasHasBeenSet() const { return m_primaryRegistryAliasHasBeenSet; } /** *

Indicates whether the registry alias is the primary alias for the registry. * If true, the alias is the primary registry alias and is displayed in both the * repository URL and the image URI used in the docker pull commands * on the Amazon ECR Public Gallery.

A registry alias that isn't the * primary registry alias can be used in the repository URI in a docker * pull command.

*/ inline void SetPrimaryRegistryAlias(bool value) { m_primaryRegistryAliasHasBeenSet = true; m_primaryRegistryAlias = value; } /** *

Indicates whether the registry alias is the primary alias for the registry. * If true, the alias is the primary registry alias and is displayed in both the * repository URL and the image URI used in the docker pull commands * on the Amazon ECR Public Gallery.

A registry alias that isn't the * primary registry alias can be used in the repository URI in a docker * pull command.

*/ inline RegistryAlias& WithPrimaryRegistryAlias(bool value) { SetPrimaryRegistryAlias(value); return *this;} /** *

Indicates whether the registry alias is the default alias for the registry. * When the first public repository is created, your public registry is assigned a * default registry alias.

*/ inline bool GetDefaultRegistryAlias() const{ return m_defaultRegistryAlias; } /** *

Indicates whether the registry alias is the default alias for the registry. * When the first public repository is created, your public registry is assigned a * default registry alias.

*/ inline bool DefaultRegistryAliasHasBeenSet() const { return m_defaultRegistryAliasHasBeenSet; } /** *

Indicates whether the registry alias is the default alias for the registry. * When the first public repository is created, your public registry is assigned a * default registry alias.

*/ inline void SetDefaultRegistryAlias(bool value) { m_defaultRegistryAliasHasBeenSet = true; m_defaultRegistryAlias = value; } /** *

Indicates whether the registry alias is the default alias for the registry. * When the first public repository is created, your public registry is assigned a * default registry alias.

*/ inline RegistryAlias& WithDefaultRegistryAlias(bool value) { SetDefaultRegistryAlias(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; RegistryAliasStatus m_status; bool m_statusHasBeenSet = false; bool m_primaryRegistryAlias; bool m_primaryRegistryAliasHasBeenSet = false; bool m_defaultRegistryAlias; bool m_defaultRegistryAliasHasBeenSet = false; }; } // namespace Model } // namespace ECRPublic } // namespace Aws