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

Information about the location of application artifacts stored in * GitHub.

See Also:

AWS * API Reference

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

The GitHub account and repository pair that stores a reference to the commit * that represents the bundled artifacts for the application revision.

*

Specified as account/repository.

*/ inline const Aws::String& GetRepository() const{ return m_repository; } /** *

The GitHub account and repository pair that stores a reference to the commit * that represents the bundled artifacts for the application revision.

*

Specified as account/repository.

*/ inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; } /** *

The GitHub account and repository pair that stores a reference to the commit * that represents the bundled artifacts for the application revision.

*

Specified as account/repository.

*/ inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; } /** *

The GitHub account and repository pair that stores a reference to the commit * that represents the bundled artifacts for the application revision.

*

Specified as account/repository.

*/ inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); } /** *

The GitHub account and repository pair that stores a reference to the commit * that represents the bundled artifacts for the application revision.

*

Specified as account/repository.

*/ inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); } /** *

The GitHub account and repository pair that stores a reference to the commit * that represents the bundled artifacts for the application revision.

*

Specified as account/repository.

*/ inline GitHubLocation& WithRepository(const Aws::String& value) { SetRepository(value); return *this;} /** *

The GitHub account and repository pair that stores a reference to the commit * that represents the bundled artifacts for the application revision.

*

Specified as account/repository.

*/ inline GitHubLocation& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;} /** *

The GitHub account and repository pair that stores a reference to the commit * that represents the bundled artifacts for the application revision.

*

Specified as account/repository.

*/ inline GitHubLocation& WithRepository(const char* value) { SetRepository(value); return *this;} /** *

The SHA1 commit ID of the GitHub commit that represents the bundled artifacts * for the application revision.

*/ inline const Aws::String& GetCommitId() const{ return m_commitId; } /** *

The SHA1 commit ID of the GitHub commit that represents the bundled artifacts * for the application revision.

*/ inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; } /** *

The SHA1 commit ID of the GitHub commit that represents the bundled artifacts * for the application revision.

*/ inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; } /** *

The SHA1 commit ID of the GitHub commit that represents the bundled artifacts * for the application revision.

*/ inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); } /** *

The SHA1 commit ID of the GitHub commit that represents the bundled artifacts * for the application revision.

*/ inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); } /** *

The SHA1 commit ID of the GitHub commit that represents the bundled artifacts * for the application revision.

*/ inline GitHubLocation& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;} /** *

The SHA1 commit ID of the GitHub commit that represents the bundled artifacts * for the application revision.

*/ inline GitHubLocation& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;} /** *

The SHA1 commit ID of the GitHub commit that represents the bundled artifacts * for the application revision.

*/ inline GitHubLocation& WithCommitId(const char* value) { SetCommitId(value); return *this;} private: Aws::String m_repository; bool m_repositoryHasBeenSet = false; Aws::String m_commitId; bool m_commitIdHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws