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

Information about the GitHub repository to be created in AWS CodeStar. This * is where the source code files provided with the project request will be * uploaded after project creation.

See Also:

AWS * API Reference

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

Name of the GitHub repository to be created in AWS CodeStar.

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

Name of the GitHub repository to be created in AWS CodeStar.

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

Name of the GitHub repository to be created in AWS CodeStar.

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

Name of the GitHub repository to be created in AWS CodeStar.

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

Name of the GitHub repository to be created in AWS CodeStar.

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

Name of the GitHub repository to be created in AWS CodeStar.

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

Name of the GitHub repository to be created in AWS CodeStar.

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

Name of the GitHub repository to be created in AWS CodeStar.

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

Description for the GitHub repository to be created in AWS CodeStar. This * description displays in GitHub after the repository is created.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

Description for the GitHub repository to be created in AWS CodeStar. This * description displays in GitHub after the repository is created.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

Description for the GitHub repository to be created in AWS CodeStar. This * description displays in GitHub after the repository is created.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

Description for the GitHub repository to be created in AWS CodeStar. This * description displays in GitHub after the repository is created.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

Description for the GitHub repository to be created in AWS CodeStar. This * description displays in GitHub after the repository is created.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

Description for the GitHub repository to be created in AWS CodeStar. This * description displays in GitHub after the repository is created.

*/ inline GitHubCodeDestination& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

Description for the GitHub repository to be created in AWS CodeStar. This * description displays in GitHub after the repository is created.

*/ inline GitHubCodeDestination& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

Description for the GitHub repository to be created in AWS CodeStar. This * description displays in GitHub after the repository is created.

*/ inline GitHubCodeDestination& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The type of GitHub repository to be created in AWS CodeStar. Valid values are * User or Organization.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of GitHub repository to be created in AWS CodeStar. Valid values are * User or Organization.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of GitHub repository to be created in AWS CodeStar. Valid values are * User or Organization.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of GitHub repository to be created in AWS CodeStar. Valid values are * User or Organization.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of GitHub repository to be created in AWS CodeStar. Valid values are * User or Organization.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of GitHub repository to be created in AWS CodeStar. Valid values are * User or Organization.

*/ inline GitHubCodeDestination& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of GitHub repository to be created in AWS CodeStar. Valid values are * User or Organization.

*/ inline GitHubCodeDestination& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of GitHub repository to be created in AWS CodeStar. Valid values are * User or Organization.

*/ inline GitHubCodeDestination& WithType(const char* value) { SetType(value); return *this;} /** *

The GitHub username for the owner of the GitHub repository to be created in * AWS CodeStar. If this repository should be owned by a GitHub organization, * provide its name.

*/ inline const Aws::String& GetOwner() const{ return m_owner; } /** *

The GitHub username for the owner of the GitHub repository to be created in * AWS CodeStar. If this repository should be owned by a GitHub organization, * provide its name.

*/ inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } /** *

The GitHub username for the owner of the GitHub repository to be created in * AWS CodeStar. If this repository should be owned by a GitHub organization, * provide its name.

*/ inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; } /** *

The GitHub username for the owner of the GitHub repository to be created in * AWS CodeStar. If this repository should be owned by a GitHub organization, * provide its name.

*/ inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } /** *

The GitHub username for the owner of the GitHub repository to be created in * AWS CodeStar. If this repository should be owned by a GitHub organization, * provide its name.

*/ inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); } /** *

The GitHub username for the owner of the GitHub repository to be created in * AWS CodeStar. If this repository should be owned by a GitHub organization, * provide its name.

*/ inline GitHubCodeDestination& WithOwner(const Aws::String& value) { SetOwner(value); return *this;} /** *

The GitHub username for the owner of the GitHub repository to be created in * AWS CodeStar. If this repository should be owned by a GitHub organization, * provide its name.

*/ inline GitHubCodeDestination& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;} /** *

The GitHub username for the owner of the GitHub repository to be created in * AWS CodeStar. If this repository should be owned by a GitHub organization, * provide its name.

*/ inline GitHubCodeDestination& WithOwner(const char* value) { SetOwner(value); return *this;} /** *

Whether the GitHub repository is to be a private repository.

*/ inline bool GetPrivateRepository() const{ return m_privateRepository; } /** *

Whether the GitHub repository is to be a private repository.

*/ inline bool PrivateRepositoryHasBeenSet() const { return m_privateRepositoryHasBeenSet; } /** *

Whether the GitHub repository is to be a private repository.

*/ inline void SetPrivateRepository(bool value) { m_privateRepositoryHasBeenSet = true; m_privateRepository = value; } /** *

Whether the GitHub repository is to be a private repository.

*/ inline GitHubCodeDestination& WithPrivateRepository(bool value) { SetPrivateRepository(value); return *this;} /** *

Whether to enable issues for the GitHub repository.

*/ inline bool GetIssuesEnabled() const{ return m_issuesEnabled; } /** *

Whether to enable issues for the GitHub repository.

*/ inline bool IssuesEnabledHasBeenSet() const { return m_issuesEnabledHasBeenSet; } /** *

Whether to enable issues for the GitHub repository.

*/ inline void SetIssuesEnabled(bool value) { m_issuesEnabledHasBeenSet = true; m_issuesEnabled = value; } /** *

Whether to enable issues for the GitHub repository.

*/ inline GitHubCodeDestination& WithIssuesEnabled(bool value) { SetIssuesEnabled(value); return *this;} /** *

The GitHub user's personal access token for the GitHub repository.

*/ inline const Aws::String& GetToken() const{ return m_token; } /** *

The GitHub user's personal access token for the GitHub repository.

*/ inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; } /** *

The GitHub user's personal access token for the GitHub repository.

*/ inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; } /** *

The GitHub user's personal access token for the GitHub repository.

*/ inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); } /** *

The GitHub user's personal access token for the GitHub repository.

*/ inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); } /** *

The GitHub user's personal access token for the GitHub repository.

*/ inline GitHubCodeDestination& WithToken(const Aws::String& value) { SetToken(value); return *this;} /** *

The GitHub user's personal access token for the GitHub repository.

*/ inline GitHubCodeDestination& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;} /** *

The GitHub user's personal access token for the GitHub repository.

*/ inline GitHubCodeDestination& WithToken(const char* value) { SetToken(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_owner; bool m_ownerHasBeenSet = false; bool m_privateRepository; bool m_privateRepositoryHasBeenSet = false; bool m_issuesEnabled; bool m_issuesEnabledHasBeenSet = false; Aws::String m_token; bool m_tokenHasBeenSet = false; }; } // namespace Model } // namespace CodeStar } // namespace Aws