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

Information about a branch of a source repository returned in a list of * branches.

See Also:

AWS * API Reference

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

The Git reference name of the branch.

*/ inline const Aws::String& GetRef() const{ return m_ref; } /** *

The Git reference name of the branch.

*/ inline bool RefHasBeenSet() const { return m_refHasBeenSet; } /** *

The Git reference name of the branch.

*/ inline void SetRef(const Aws::String& value) { m_refHasBeenSet = true; m_ref = value; } /** *

The Git reference name of the branch.

*/ inline void SetRef(Aws::String&& value) { m_refHasBeenSet = true; m_ref = std::move(value); } /** *

The Git reference name of the branch.

*/ inline void SetRef(const char* value) { m_refHasBeenSet = true; m_ref.assign(value); } /** *

The Git reference name of the branch.

*/ inline ListSourceRepositoryBranchesItem& WithRef(const Aws::String& value) { SetRef(value); return *this;} /** *

The Git reference name of the branch.

*/ inline ListSourceRepositoryBranchesItem& WithRef(Aws::String&& value) { SetRef(std::move(value)); return *this;} /** *

The Git reference name of the branch.

*/ inline ListSourceRepositoryBranchesItem& WithRef(const char* value) { SetRef(value); return *this;} /** *

The name of the branch.

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

The name of the branch.

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

The name of the branch.

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

The name of the branch.

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

The name of the branch.

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

The name of the branch.

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

The name of the branch.

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

The name of the branch.

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

The time the branch was last updated, in coordinated universal time (UTC) * timestamp format as specified in RFC 3339.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

The time the branch was last updated, in coordinated universal time (UTC) * timestamp format as specified in RFC 3339.

*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *

The time the branch was last updated, in coordinated universal time (UTC) * timestamp format as specified in RFC 3339.

*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *

The time the branch was last updated, in coordinated universal time (UTC) * timestamp format as specified in RFC 3339.

*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *

The time the branch was last updated, in coordinated universal time (UTC) * timestamp format as specified in RFC 3339.

*/ inline ListSourceRepositoryBranchesItem& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *

The time the branch was last updated, in coordinated universal time (UTC) * timestamp format as specified in RFC 3339.

*/ inline ListSourceRepositoryBranchesItem& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *

The commit ID of the tip of the branch at the time of the request, also known * as the head commit.

*/ inline const Aws::String& GetHeadCommitId() const{ return m_headCommitId; } /** *

The commit ID of the tip of the branch at the time of the request, also known * as the head commit.

*/ inline bool HeadCommitIdHasBeenSet() const { return m_headCommitIdHasBeenSet; } /** *

The commit ID of the tip of the branch at the time of the request, also known * as the head commit.

*/ inline void SetHeadCommitId(const Aws::String& value) { m_headCommitIdHasBeenSet = true; m_headCommitId = value; } /** *

The commit ID of the tip of the branch at the time of the request, also known * as the head commit.

*/ inline void SetHeadCommitId(Aws::String&& value) { m_headCommitIdHasBeenSet = true; m_headCommitId = std::move(value); } /** *

The commit ID of the tip of the branch at the time of the request, also known * as the head commit.

*/ inline void SetHeadCommitId(const char* value) { m_headCommitIdHasBeenSet = true; m_headCommitId.assign(value); } /** *

The commit ID of the tip of the branch at the time of the request, also known * as the head commit.

*/ inline ListSourceRepositoryBranchesItem& WithHeadCommitId(const Aws::String& value) { SetHeadCommitId(value); return *this;} /** *

The commit ID of the tip of the branch at the time of the request, also known * as the head commit.

*/ inline ListSourceRepositoryBranchesItem& WithHeadCommitId(Aws::String&& value) { SetHeadCommitId(std::move(value)); return *this;} /** *

The commit ID of the tip of the branch at the time of the request, also known * as the head commit.

*/ inline ListSourceRepositoryBranchesItem& WithHeadCommitId(const char* value) { SetHeadCommitId(value); return *this;} private: Aws::String m_ref; bool m_refHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; Aws::String m_headCommitId; bool m_headCommitIdHasBeenSet = false; }; } // namespace Model } // namespace CodeCatalyst } // namespace Aws