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

Detail input data for a linked repository branch.

See Also:

* AWS * API Reference

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

The repository branch.

*/ inline const Aws::String& GetBranch() const{ return m_branch; } /** *

The repository branch.

*/ inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; } /** *

The repository branch.

*/ inline void SetBranch(const Aws::String& value) { m_branchHasBeenSet = true; m_branch = value; } /** *

The repository branch.

*/ inline void SetBranch(Aws::String&& value) { m_branchHasBeenSet = true; m_branch = std::move(value); } /** *

The repository branch.

*/ inline void SetBranch(const char* value) { m_branchHasBeenSet = true; m_branch.assign(value); } /** *

The repository branch.

*/ inline RepositoryBranchInput& WithBranch(const Aws::String& value) { SetBranch(value); return *this;} /** *

The repository branch.

*/ inline RepositoryBranchInput& WithBranch(Aws::String&& value) { SetBranch(std::move(value)); return *this;} /** *

The repository branch.

*/ inline RepositoryBranchInput& WithBranch(const char* value) { SetBranch(value); return *this;} /** *

The repository name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The repository name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The repository name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The repository name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The repository name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The repository name.

*/ inline RepositoryBranchInput& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The repository name.

*/ inline RepositoryBranchInput& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The repository name.

*/ inline RepositoryBranchInput& WithName(const char* value) { SetName(value); return *this;} /** *

The repository provider.

*/ inline const RepositoryProvider& GetProvider() const{ return m_provider; } /** *

The repository provider.

*/ inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; } /** *

The repository provider.

*/ inline void SetProvider(const RepositoryProvider& value) { m_providerHasBeenSet = true; m_provider = value; } /** *

The repository provider.

*/ inline void SetProvider(RepositoryProvider&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); } /** *

The repository provider.

*/ inline RepositoryBranchInput& WithProvider(const RepositoryProvider& value) { SetProvider(value); return *this;} /** *

The repository provider.

*/ inline RepositoryBranchInput& WithProvider(RepositoryProvider&& value) { SetProvider(std::move(value)); return *this;} private: Aws::String m_branch; bool m_branchHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; RepositoryProvider m_provider; bool m_providerHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws