/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The details of a repository stored in CodeArtifact. A CodeArtifact
* repository contains a set of package versions, each of which maps to a set of
* assets. Repositories are polyglot—a single repository can contain packages of
* any supported type. Each repository exposes endpoints for fetching and
* publishing packages using tools like the npm
CLI, the Maven CLI
* (mvn
), and pip
. You can create up to 100 repositories
* per Amazon Web Services account. See Also:
AWS
* API Reference
The name of the repository.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the repository.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the repository.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the repository.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the repository.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the repository.
*/ inline RepositoryDescription& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the repository.
*/ inline RepositoryDescription& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the repository.
*/ inline RepositoryDescription& WithName(const char* value) { SetName(value); return *this;} /** *The 12-digit account number of the Amazon Web Services account that manages * the repository.
*/ inline const Aws::String& GetAdministratorAccount() const{ return m_administratorAccount; } /** *The 12-digit account number of the Amazon Web Services account that manages * the repository.
*/ inline bool AdministratorAccountHasBeenSet() const { return m_administratorAccountHasBeenSet; } /** *The 12-digit account number of the Amazon Web Services account that manages * the repository.
*/ inline void SetAdministratorAccount(const Aws::String& value) { m_administratorAccountHasBeenSet = true; m_administratorAccount = value; } /** *The 12-digit account number of the Amazon Web Services account that manages * the repository.
*/ inline void SetAdministratorAccount(Aws::String&& value) { m_administratorAccountHasBeenSet = true; m_administratorAccount = std::move(value); } /** *The 12-digit account number of the Amazon Web Services account that manages * the repository.
*/ inline void SetAdministratorAccount(const char* value) { m_administratorAccountHasBeenSet = true; m_administratorAccount.assign(value); } /** *The 12-digit account number of the Amazon Web Services account that manages * the repository.
*/ inline RepositoryDescription& WithAdministratorAccount(const Aws::String& value) { SetAdministratorAccount(value); return *this;} /** *The 12-digit account number of the Amazon Web Services account that manages * the repository.
*/ inline RepositoryDescription& WithAdministratorAccount(Aws::String&& value) { SetAdministratorAccount(std::move(value)); return *this;} /** *The 12-digit account number of the Amazon Web Services account that manages * the repository.
*/ inline RepositoryDescription& WithAdministratorAccount(const char* value) { SetAdministratorAccount(value); return *this;} /** *The name of the domain that contains the repository.
*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *The name of the domain that contains the repository.
*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *The name of the domain that contains the repository.
*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *The name of the domain that contains the repository.
*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *The name of the domain that contains the repository.
*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *The name of the domain that contains the repository.
*/ inline RepositoryDescription& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *The name of the domain that contains the repository.
*/ inline RepositoryDescription& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *The name of the domain that contains the repository.
*/ inline RepositoryDescription& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *The 12-digit account number of the Amazon Web Services account that owns the * domain that contains the repository. It does not include dashes or spaces.
*/ inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; } /** *The 12-digit account number of the Amazon Web Services account that owns the * domain that contains the repository. It does not include dashes or spaces.
*/ inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; } /** *The 12-digit account number of the Amazon Web Services account that owns the * domain that contains the repository. It does not include dashes or spaces.
*/ inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; } /** *The 12-digit account number of the Amazon Web Services account that owns the * domain that contains the repository. It does not include dashes or spaces.
*/ inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); } /** *The 12-digit account number of the Amazon Web Services account that owns the * domain that contains the repository. It does not include dashes or spaces.
*/ inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); } /** *The 12-digit account number of the Amazon Web Services account that owns the * domain that contains the repository. It does not include dashes or spaces.
*/ inline RepositoryDescription& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;} /** *The 12-digit account number of the Amazon Web Services account that owns the * domain that contains the repository. It does not include dashes or spaces.
*/ inline RepositoryDescription& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;} /** *The 12-digit account number of the Amazon Web Services account that owns the * domain that contains the repository. It does not include dashes or spaces.
*/ inline RepositoryDescription& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;} /** *The Amazon Resource Name (ARN) of the repository.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the repository.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the repository.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the repository.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the repository.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the repository.
*/ inline RepositoryDescription& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the repository.
*/ inline RepositoryDescription& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the repository.
*/ inline RepositoryDescription& WithArn(const char* value) { SetArn(value); return *this;} /** *A text description of the repository.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *A text description of the repository.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *A text description of the repository.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *A text description of the repository.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *A text description of the repository.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *A text description of the repository.
*/ inline RepositoryDescription& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A text description of the repository.
*/ inline RepositoryDescription& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A text description of the repository.
*/ inline RepositoryDescription& WithDescription(const char* value) { SetDescription(value); return *this;} /** *A list of upstream repositories to associate with the repository. The order * of the upstream repositories in the list determines their priority order when * CodeArtifact looks for a requested package version. For more information, see Working * with upstream repositories.
*/ inline const Aws::VectorA list of upstream repositories to associate with the repository. The order * of the upstream repositories in the list determines their priority order when * CodeArtifact looks for a requested package version. For more information, see Working * with upstream repositories.
*/ inline bool UpstreamsHasBeenSet() const { return m_upstreamsHasBeenSet; } /** *A list of upstream repositories to associate with the repository. The order * of the upstream repositories in the list determines their priority order when * CodeArtifact looks for a requested package version. For more information, see Working * with upstream repositories.
*/ inline void SetUpstreams(const Aws::VectorA list of upstream repositories to associate with the repository. The order * of the upstream repositories in the list determines their priority order when * CodeArtifact looks for a requested package version. For more information, see Working * with upstream repositories.
*/ inline void SetUpstreams(Aws::VectorA list of upstream repositories to associate with the repository. The order * of the upstream repositories in the list determines their priority order when * CodeArtifact looks for a requested package version. For more information, see Working * with upstream repositories.
*/ inline RepositoryDescription& WithUpstreams(const Aws::VectorA list of upstream repositories to associate with the repository. The order * of the upstream repositories in the list determines their priority order when * CodeArtifact looks for a requested package version. For more information, see Working * with upstream repositories.
*/ inline RepositoryDescription& WithUpstreams(Aws::VectorA list of upstream repositories to associate with the repository. The order * of the upstream repositories in the list determines their priority order when * CodeArtifact looks for a requested package version. For more information, see Working * with upstream repositories.
*/ inline RepositoryDescription& AddUpstreams(const UpstreamRepositoryInfo& value) { m_upstreamsHasBeenSet = true; m_upstreams.push_back(value); return *this; } /** *A list of upstream repositories to associate with the repository. The order * of the upstream repositories in the list determines their priority order when * CodeArtifact looks for a requested package version. For more information, see Working * with upstream repositories.
*/ inline RepositoryDescription& AddUpstreams(UpstreamRepositoryInfo&& value) { m_upstreamsHasBeenSet = true; m_upstreams.push_back(std::move(value)); return *this; } /** *An array of external connections associated with the repository.
*/ inline const Aws::VectorAn array of external connections associated with the repository.
*/ inline bool ExternalConnectionsHasBeenSet() const { return m_externalConnectionsHasBeenSet; } /** *An array of external connections associated with the repository.
*/ inline void SetExternalConnections(const Aws::VectorAn array of external connections associated with the repository.
*/ inline void SetExternalConnections(Aws::VectorAn array of external connections associated with the repository.
*/ inline RepositoryDescription& WithExternalConnections(const Aws::VectorAn array of external connections associated with the repository.
*/ inline RepositoryDescription& WithExternalConnections(Aws::VectorAn array of external connections associated with the repository.
*/ inline RepositoryDescription& AddExternalConnections(const RepositoryExternalConnectionInfo& value) { m_externalConnectionsHasBeenSet = true; m_externalConnections.push_back(value); return *this; } /** *An array of external connections associated with the repository.
*/ inline RepositoryDescription& AddExternalConnections(RepositoryExternalConnectionInfo&& value) { m_externalConnectionsHasBeenSet = true; m_externalConnections.push_back(std::move(value)); return *this; } /** *A timestamp that represents the date and time the repository was created.
*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *A timestamp that represents the date and time the repository was created.
*/ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *A timestamp that represents the date and time the repository was created.
*/ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** *A timestamp that represents the date and time the repository was created.
*/ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** *A timestamp that represents the date and time the repository was created.
*/ inline RepositoryDescription& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *A timestamp that represents the date and time the repository was created.
*/ inline RepositoryDescription& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_administratorAccount; bool m_administratorAccountHasBeenSet = false; Aws::String m_domainName; bool m_domainNameHasBeenSet = false; Aws::String m_domainOwner; bool m_domainOwnerHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector