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

Information about a repository that will be cloned to a Dev * Environment.

See Also:

AWS * API Reference

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

The name of the source repository.

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

The name of the source repository.

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

The name of the source repository.

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

The name of the source repository.

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

The name of the source repository.

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

The name of the source repository.

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

The name of the source repository.

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

The name of the source repository.

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

The name of the branch in a source repository.

*/ inline const Aws::String& GetBranchName() const{ return m_branchName; } /** *

The name of the branch in a source repository.

*/ inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; } /** *

The name of the branch in a source repository.

*/ inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; } /** *

The name of the branch in a source repository.

*/ inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); } /** *

The name of the branch in a source repository.

*/ inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); } /** *

The name of the branch in a source repository.

*/ inline RepositoryInput& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;} /** *

The name of the branch in a source repository.

*/ inline RepositoryInput& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;} /** *

The name of the branch in a source repository.

*/ inline RepositoryInput& WithBranchName(const char* value) { SetBranchName(value); return *this;} private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_branchName; bool m_branchNameHasBeenSet = false; }; } // namespace Model } // namespace CodeCatalyst } // namespace Aws