/** * 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 { /** *

Revision detail data for a commit and push that activates a sync * attempt

See Also:

AWS API * Reference

*/ class Revision { public: AWS_PROTON_API Revision(); AWS_PROTON_API Revision(Aws::Utils::Json::JsonView jsonValue); AWS_PROTON_API Revision& 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 Revision& WithBranch(const Aws::String& value) { SetBranch(value); return *this;} /** *

The repository branch.

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

The repository branch.

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

The repository directory changed by a commit and push that activated the sync * attempt.

*/ inline const Aws::String& GetDirectory() const{ return m_directory; } /** *

The repository directory changed by a commit and push that activated the sync * attempt.

*/ inline bool DirectoryHasBeenSet() const { return m_directoryHasBeenSet; } /** *

The repository directory changed by a commit and push that activated the sync * attempt.

*/ inline void SetDirectory(const Aws::String& value) { m_directoryHasBeenSet = true; m_directory = value; } /** *

The repository directory changed by a commit and push that activated the sync * attempt.

*/ inline void SetDirectory(Aws::String&& value) { m_directoryHasBeenSet = true; m_directory = std::move(value); } /** *

The repository directory changed by a commit and push that activated the sync * attempt.

*/ inline void SetDirectory(const char* value) { m_directoryHasBeenSet = true; m_directory.assign(value); } /** *

The repository directory changed by a commit and push that activated the sync * attempt.

*/ inline Revision& WithDirectory(const Aws::String& value) { SetDirectory(value); return *this;} /** *

The repository directory changed by a commit and push that activated the sync * attempt.

*/ inline Revision& WithDirectory(Aws::String&& value) { SetDirectory(std::move(value)); return *this;} /** *

The repository directory changed by a commit and push that activated the sync * attempt.

*/ inline Revision& WithDirectory(const char* value) { SetDirectory(value); return *this;} /** *

The repository name.

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

The repository name.

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

The repository name.

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

The repository name.

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

The repository name.

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

The repository name.

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

The repository name.

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

The repository name.

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

The repository provider.

*/ inline const RepositoryProvider& GetRepositoryProvider() const{ return m_repositoryProvider; } /** *

The repository provider.

*/ inline bool RepositoryProviderHasBeenSet() const { return m_repositoryProviderHasBeenSet; } /** *

The repository provider.

*/ inline void SetRepositoryProvider(const RepositoryProvider& value) { m_repositoryProviderHasBeenSet = true; m_repositoryProvider = value; } /** *

The repository provider.

*/ inline void SetRepositoryProvider(RepositoryProvider&& value) { m_repositoryProviderHasBeenSet = true; m_repositoryProvider = std::move(value); } /** *

The repository provider.

*/ inline Revision& WithRepositoryProvider(const RepositoryProvider& value) { SetRepositoryProvider(value); return *this;} /** *

The repository provider.

*/ inline Revision& WithRepositoryProvider(RepositoryProvider&& value) { SetRepositoryProvider(std::move(value)); return *this;} /** *

The secure hash algorithm (SHA) hash for the revision.

*/ inline const Aws::String& GetSha() const{ return m_sha; } /** *

The secure hash algorithm (SHA) hash for the revision.

*/ inline bool ShaHasBeenSet() const { return m_shaHasBeenSet; } /** *

The secure hash algorithm (SHA) hash for the revision.

*/ inline void SetSha(const Aws::String& value) { m_shaHasBeenSet = true; m_sha = value; } /** *

The secure hash algorithm (SHA) hash for the revision.

*/ inline void SetSha(Aws::String&& value) { m_shaHasBeenSet = true; m_sha = std::move(value); } /** *

The secure hash algorithm (SHA) hash for the revision.

*/ inline void SetSha(const char* value) { m_shaHasBeenSet = true; m_sha.assign(value); } /** *

The secure hash algorithm (SHA) hash for the revision.

*/ inline Revision& WithSha(const Aws::String& value) { SetSha(value); return *this;} /** *

The secure hash algorithm (SHA) hash for the revision.

*/ inline Revision& WithSha(Aws::String&& value) { SetSha(std::move(value)); return *this;} /** *

The secure hash algorithm (SHA) hash for the revision.

*/ inline Revision& WithSha(const char* value) { SetSha(value); return *this;} private: Aws::String m_branch; bool m_branchHasBeenSet = false; Aws::String m_directory; bool m_directoryHasBeenSet = false; Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; RepositoryProvider m_repositoryProvider; bool m_repositoryProviderHasBeenSet = false; Aws::String m_sha; bool m_shaHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws