/** * 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 CodeArtifact { namespace Model { /** *

Information about how a package originally entered the CodeArtifact domain. * For packages published directly to CodeArtifact, the entry point is the * repository it was published to. For packages ingested from an external * repository, the entry point is the external connection that it was ingested * from. An external connection is a CodeArtifact repository that is connected to * an external repository such as the npm registry or NuGet gallery.

See * Also:

AWS * API Reference

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

The name of the repository that a package was originally published to.

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

The name of the repository that a package was originally published to.

*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *

The name of the repository that a package was originally published to.

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *

The name of the repository that a package was originally published to.

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *

The name of the repository that a package was originally published to.

*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *

The name of the repository that a package was originally published to.

*/ inline DomainEntryPoint& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The name of the repository that a package was originally published to.

*/ inline DomainEntryPoint& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

The name of the repository that a package was originally published to.

*/ inline DomainEntryPoint& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *

The name of the external connection that a package was ingested from.

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

The name of the external connection that a package was ingested from.

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

The name of the external connection that a package was ingested from.

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

The name of the external connection that a package was ingested from.

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

The name of the external connection that a package was ingested from.

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

The name of the external connection that a package was ingested from.

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

The name of the external connection that a package was ingested from.

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

The name of the external connection that a package was ingested from.

*/ inline DomainEntryPoint& WithExternalConnectionName(const char* value) { SetExternalConnectionName(value); return *this;} private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_externalConnectionName; bool m_externalConnectionNameHasBeenSet = false; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws