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

Contains information about the external connection of a repository. *

See Also:

AWS * API Reference

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

The name of the external connection associated with a repository.

*/ inline const Aws::String& GetExternalConnectionName() const{ return m_externalConnectionName; } /** *

The name of the external connection associated with a repository.

*/ inline bool ExternalConnectionNameHasBeenSet() const { return m_externalConnectionNameHasBeenSet; } /** *

The name of the external connection associated with a repository.

*/ inline void SetExternalConnectionName(const Aws::String& value) { m_externalConnectionNameHasBeenSet = true; m_externalConnectionName = value; } /** *

The name of the external connection associated with a repository.

*/ inline void SetExternalConnectionName(Aws::String&& value) { m_externalConnectionNameHasBeenSet = true; m_externalConnectionName = std::move(value); } /** *

The name of the external connection associated with a repository.

*/ inline void SetExternalConnectionName(const char* value) { m_externalConnectionNameHasBeenSet = true; m_externalConnectionName.assign(value); } /** *

The name of the external connection associated with a repository.

*/ inline RepositoryExternalConnectionInfo& WithExternalConnectionName(const Aws::String& value) { SetExternalConnectionName(value); return *this;} /** *

The name of the external connection associated with a repository.

*/ inline RepositoryExternalConnectionInfo& WithExternalConnectionName(Aws::String&& value) { SetExternalConnectionName(std::move(value)); return *this;} /** *

The name of the external connection associated with a repository.

*/ inline RepositoryExternalConnectionInfo& WithExternalConnectionName(const char* value) { SetExternalConnectionName(value); return *this;} /** *

The package format associated with a repository's external connection. The * valid package formats are:

  • npm: A Node Package * Manager (npm) package.

  • pypi: A Python Package * Index (PyPI) package.

  • maven: A Maven package * that contains compiled code in a distributable format, such as a JAR file.

    *
  • nuget: A NuGet package.

*/ inline const PackageFormat& GetPackageFormat() const{ return m_packageFormat; } /** *

The package format associated with a repository's external connection. The * valid package formats are:

  • npm: A Node Package * Manager (npm) package.

  • pypi: A Python Package * Index (PyPI) package.

  • maven: A Maven package * that contains compiled code in a distributable format, such as a JAR file.

    *
  • nuget: A NuGet package.

*/ inline bool PackageFormatHasBeenSet() const { return m_packageFormatHasBeenSet; } /** *

The package format associated with a repository's external connection. The * valid package formats are:

  • npm: A Node Package * Manager (npm) package.

  • pypi: A Python Package * Index (PyPI) package.

  • maven: A Maven package * that contains compiled code in a distributable format, such as a JAR file.

    *
  • nuget: A NuGet package.

*/ inline void SetPackageFormat(const PackageFormat& value) { m_packageFormatHasBeenSet = true; m_packageFormat = value; } /** *

The package format associated with a repository's external connection. The * valid package formats are:

  • npm: A Node Package * Manager (npm) package.

  • pypi: A Python Package * Index (PyPI) package.

  • maven: A Maven package * that contains compiled code in a distributable format, such as a JAR file.

    *
  • nuget: A NuGet package.

*/ inline void SetPackageFormat(PackageFormat&& value) { m_packageFormatHasBeenSet = true; m_packageFormat = std::move(value); } /** *

The package format associated with a repository's external connection. The * valid package formats are:

  • npm: A Node Package * Manager (npm) package.

  • pypi: A Python Package * Index (PyPI) package.

  • maven: A Maven package * that contains compiled code in a distributable format, such as a JAR file.

    *
  • nuget: A NuGet package.

*/ inline RepositoryExternalConnectionInfo& WithPackageFormat(const PackageFormat& value) { SetPackageFormat(value); return *this;} /** *

The package format associated with a repository's external connection. The * valid package formats are:

  • npm: A Node Package * Manager (npm) package.

  • pypi: A Python Package * Index (PyPI) package.

  • maven: A Maven package * that contains compiled code in a distributable format, such as a JAR file.

    *
  • nuget: A NuGet package.

*/ inline RepositoryExternalConnectionInfo& WithPackageFormat(PackageFormat&& value) { SetPackageFormat(std::move(value)); return *this;} /** *

The status of the external connection of a repository. There is one valid * value, Available.

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

The status of the external connection of a repository. There is one valid * value, Available.

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

The status of the external connection of a repository. There is one valid * value, Available.

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

The status of the external connection of a repository. There is one valid * value, Available.

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

The status of the external connection of a repository. There is one valid * value, Available.

*/ inline RepositoryExternalConnectionInfo& WithStatus(const ExternalConnectionStatus& value) { SetStatus(value); return *this;} /** *

The status of the external connection of a repository. There is one valid * value, Available.

*/ inline RepositoryExternalConnectionInfo& WithStatus(ExternalConnectionStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_externalConnectionName; bool m_externalConnectionNameHasBeenSet = false; PackageFormat m_packageFormat; bool m_packageFormatHasBeenSet = false; ExternalConnectionStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws