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

Information about a third-party source repository connected to CodeGuru * Reviewer.

See Also:

AWS * API Reference

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

The name of the third party source repository.

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

The name of the third party source repository.

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

The name of the third party source repository.

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

The name of the third party source repository.

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

The name of the third party source repository.

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

The name of the third party source repository.

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

The name of the third party source repository.

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

The name of the third party source repository.

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

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections * connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. * For more information, see Connection * in the Amazon Web Services CodeStar Connections API Reference.

*/ inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; } /** *

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections * connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. * For more information, see Connection * in the Amazon Web Services CodeStar Connections API Reference.

*/ inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections * connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. * For more information, see Connection * in the Amazon Web Services CodeStar Connections API Reference.

*/ inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; } /** *

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections * connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. * For more information, see Connection * in the Amazon Web Services CodeStar Connections API Reference.

*/ inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections * connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. * For more information, see Connection * in the Amazon Web Services CodeStar Connections API Reference.

*/ inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections * connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. * For more information, see Connection * in the Amazon Web Services CodeStar Connections API Reference.

*/ inline ThirdPartySourceRepository& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections * connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. * For more information, see Connection * in the Amazon Web Services CodeStar Connections API Reference.

*/ inline ThirdPartySourceRepository& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections * connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. * For more information, see Connection * in the Amazon Web Services CodeStar Connections API Reference.

*/ inline ThirdPartySourceRepository& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;} /** *

The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket * repository, this is the username for the account that owns the repository. For * an S3 repository, this can be the username or Amazon Web Services account ID *

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

The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket * repository, this is the username for the account that owns the repository. For * an S3 repository, this can be the username or Amazon Web Services account ID *

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

The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket * repository, this is the username for the account that owns the repository. For * an S3 repository, this can be the username or Amazon Web Services account ID *

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

The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket * repository, this is the username for the account that owns the repository. For * an S3 repository, this can be the username or Amazon Web Services account ID *

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

The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket * repository, this is the username for the account that owns the repository. For * an S3 repository, this can be the username or Amazon Web Services account ID *

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

The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket * repository, this is the username for the account that owns the repository. For * an S3 repository, this can be the username or Amazon Web Services account ID *

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

The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket * repository, this is the username for the account that owns the repository. For * an S3 repository, this can be the username or Amazon Web Services account ID *

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

The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket * repository, this is the username for the account that owns the repository. For * an S3 repository, this can be the username or Amazon Web Services account ID *

*/ inline ThirdPartySourceRepository& WithOwner(const char* value) { SetOwner(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_connectionArn; bool m_connectionArnHasBeenSet = false; Aws::String m_owner; bool m_ownerHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruReviewer } // namespace Aws