/** * 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 an upstream repository.

See Also:

AWS * API Reference

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

The name of an upstream repository.

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

The name of an upstream repository.

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

The name of an upstream repository.

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

The name of an upstream repository.

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

The name of an upstream repository.

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

The name of an upstream repository.

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

The name of an upstream repository.

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

The name of an upstream repository.

*/ inline UpstreamRepositoryInfo& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws