/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeGuruReviewer { namespace Model { /** *

Metadata that is associated with a code review. This applies to both pull * request and repository analysis code reviews.

See Also:

AWS * API Reference

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

The ID of the request. This is required for a pull request code review.

*/ inline const Aws::String& GetRequestId() const{ return m_requestId; } /** *

The ID of the request. This is required for a pull request code review.

*/ inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } /** *

The ID of the request. This is required for a pull request code review.

*/ inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } /** *

The ID of the request. This is required for a pull request code review.

*/ inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } /** *

The ID of the request. This is required for a pull request code review.

*/ inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } /** *

The ID of the request. This is required for a pull request code review.

*/ inline RequestMetadata& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} /** *

The ID of the request. This is required for a pull request code review.

*/ inline RequestMetadata& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} /** *

The ID of the request. This is required for a pull request code review.

*/ inline RequestMetadata& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *

An identifier, such as a name or account ID, that is associated with the * requester. The Requester is used to capture the * author/actor name of the event request.

*/ inline const Aws::String& GetRequester() const{ return m_requester; } /** *

An identifier, such as a name or account ID, that is associated with the * requester. The Requester is used to capture the * author/actor name of the event request.

*/ inline bool RequesterHasBeenSet() const { return m_requesterHasBeenSet; } /** *

An identifier, such as a name or account ID, that is associated with the * requester. The Requester is used to capture the * author/actor name of the event request.

*/ inline void SetRequester(const Aws::String& value) { m_requesterHasBeenSet = true; m_requester = value; } /** *

An identifier, such as a name or account ID, that is associated with the * requester. The Requester is used to capture the * author/actor name of the event request.

*/ inline void SetRequester(Aws::String&& value) { m_requesterHasBeenSet = true; m_requester = std::move(value); } /** *

An identifier, such as a name or account ID, that is associated with the * requester. The Requester is used to capture the * author/actor name of the event request.

*/ inline void SetRequester(const char* value) { m_requesterHasBeenSet = true; m_requester.assign(value); } /** *

An identifier, such as a name or account ID, that is associated with the * requester. The Requester is used to capture the * author/actor name of the event request.

*/ inline RequestMetadata& WithRequester(const Aws::String& value) { SetRequester(value); return *this;} /** *

An identifier, such as a name or account ID, that is associated with the * requester. The Requester is used to capture the * author/actor name of the event request.

*/ inline RequestMetadata& WithRequester(Aws::String&& value) { SetRequester(std::move(value)); return *this;} /** *

An identifier, such as a name or account ID, that is associated with the * requester. The Requester is used to capture the * author/actor name of the event request.

*/ inline RequestMetadata& WithRequester(const char* value) { SetRequester(value); return *this;} /** *

Information about the event associated with a code review.

*/ inline const EventInfo& GetEventInfo() const{ return m_eventInfo; } /** *

Information about the event associated with a code review.

*/ inline bool EventInfoHasBeenSet() const { return m_eventInfoHasBeenSet; } /** *

Information about the event associated with a code review.

*/ inline void SetEventInfo(const EventInfo& value) { m_eventInfoHasBeenSet = true; m_eventInfo = value; } /** *

Information about the event associated with a code review.

*/ inline void SetEventInfo(EventInfo&& value) { m_eventInfoHasBeenSet = true; m_eventInfo = std::move(value); } /** *

Information about the event associated with a code review.

*/ inline RequestMetadata& WithEventInfo(const EventInfo& value) { SetEventInfo(value); return *this;} /** *

Information about the event associated with a code review.

*/ inline RequestMetadata& WithEventInfo(EventInfo&& value) { SetEventInfo(std::move(value)); return *this;} /** *

The name of the repository vendor used to upload code to an S3 bucket for a * CI/CD code review. For example, if code and artifacts are uploaded to an S3 * bucket for a CI/CD code review by GitHub scripts from a GitHub repository, then * the repository association's ProviderType is S3Bucket * and the CI/CD repository vendor name is GitHub. For more information, see the * definition for ProviderType in RepositoryAssociation.

*/ inline const VendorName& GetVendorName() const{ return m_vendorName; } /** *

The name of the repository vendor used to upload code to an S3 bucket for a * CI/CD code review. For example, if code and artifacts are uploaded to an S3 * bucket for a CI/CD code review by GitHub scripts from a GitHub repository, then * the repository association's ProviderType is S3Bucket * and the CI/CD repository vendor name is GitHub. For more information, see the * definition for ProviderType in RepositoryAssociation.

*/ inline bool VendorNameHasBeenSet() const { return m_vendorNameHasBeenSet; } /** *

The name of the repository vendor used to upload code to an S3 bucket for a * CI/CD code review. For example, if code and artifacts are uploaded to an S3 * bucket for a CI/CD code review by GitHub scripts from a GitHub repository, then * the repository association's ProviderType is S3Bucket * and the CI/CD repository vendor name is GitHub. For more information, see the * definition for ProviderType in RepositoryAssociation.

*/ inline void SetVendorName(const VendorName& value) { m_vendorNameHasBeenSet = true; m_vendorName = value; } /** *

The name of the repository vendor used to upload code to an S3 bucket for a * CI/CD code review. For example, if code and artifacts are uploaded to an S3 * bucket for a CI/CD code review by GitHub scripts from a GitHub repository, then * the repository association's ProviderType is S3Bucket * and the CI/CD repository vendor name is GitHub. For more information, see the * definition for ProviderType in RepositoryAssociation.

*/ inline void SetVendorName(VendorName&& value) { m_vendorNameHasBeenSet = true; m_vendorName = std::move(value); } /** *

The name of the repository vendor used to upload code to an S3 bucket for a * CI/CD code review. For example, if code and artifacts are uploaded to an S3 * bucket for a CI/CD code review by GitHub scripts from a GitHub repository, then * the repository association's ProviderType is S3Bucket * and the CI/CD repository vendor name is GitHub. For more information, see the * definition for ProviderType in RepositoryAssociation.

*/ inline RequestMetadata& WithVendorName(const VendorName& value) { SetVendorName(value); return *this;} /** *

The name of the repository vendor used to upload code to an S3 bucket for a * CI/CD code review. For example, if code and artifacts are uploaded to an S3 * bucket for a CI/CD code review by GitHub scripts from a GitHub repository, then * the repository association's ProviderType is S3Bucket * and the CI/CD repository vendor name is GitHub. For more information, see the * definition for ProviderType in RepositoryAssociation.

*/ inline RequestMetadata& WithVendorName(VendorName&& value) { SetVendorName(std::move(value)); return *this;} private: Aws::String m_requestId; bool m_requestIdHasBeenSet = false; Aws::String m_requester; bool m_requesterHasBeenSet = false; EventInfo m_eventInfo; bool m_eventInfoHasBeenSet = false; VendorName m_vendorName; bool m_vendorNameHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruReviewer } // namespace Aws