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

Code artifacts are source code artifacts and build artifacts used in a * repository analysis or a pull request review.

  • Source code * artifacts are source code files in a Git repository that are compressed into a * .zip file.

  • Build artifacts are .jar or .class files that are * compressed in a .zip file.

See Also:

AWS * API Reference

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

The S3 object key for a source code .zip file. This is required for all code * reviews.

*/ inline const Aws::String& GetSourceCodeArtifactsObjectKey() const{ return m_sourceCodeArtifactsObjectKey; } /** *

The S3 object key for a source code .zip file. This is required for all code * reviews.

*/ inline bool SourceCodeArtifactsObjectKeyHasBeenSet() const { return m_sourceCodeArtifactsObjectKeyHasBeenSet; } /** *

The S3 object key for a source code .zip file. This is required for all code * reviews.

*/ inline void SetSourceCodeArtifactsObjectKey(const Aws::String& value) { m_sourceCodeArtifactsObjectKeyHasBeenSet = true; m_sourceCodeArtifactsObjectKey = value; } /** *

The S3 object key for a source code .zip file. This is required for all code * reviews.

*/ inline void SetSourceCodeArtifactsObjectKey(Aws::String&& value) { m_sourceCodeArtifactsObjectKeyHasBeenSet = true; m_sourceCodeArtifactsObjectKey = std::move(value); } /** *

The S3 object key for a source code .zip file. This is required for all code * reviews.

*/ inline void SetSourceCodeArtifactsObjectKey(const char* value) { m_sourceCodeArtifactsObjectKeyHasBeenSet = true; m_sourceCodeArtifactsObjectKey.assign(value); } /** *

The S3 object key for a source code .zip file. This is required for all code * reviews.

*/ inline CodeArtifacts& WithSourceCodeArtifactsObjectKey(const Aws::String& value) { SetSourceCodeArtifactsObjectKey(value); return *this;} /** *

The S3 object key for a source code .zip file. This is required for all code * reviews.

*/ inline CodeArtifacts& WithSourceCodeArtifactsObjectKey(Aws::String&& value) { SetSourceCodeArtifactsObjectKey(std::move(value)); return *this;} /** *

The S3 object key for a source code .zip file. This is required for all code * reviews.

*/ inline CodeArtifacts& WithSourceCodeArtifactsObjectKey(const char* value) { SetSourceCodeArtifactsObjectKey(value); return *this;} /** *

The S3 object key for a build artifacts .zip file that contains .jar or * .class files. This is required for a code review with security analysis. For * more information, see Create * code reviews with GitHub Actions in the Amazon CodeGuru Reviewer User * Guide.

*/ inline const Aws::String& GetBuildArtifactsObjectKey() const{ return m_buildArtifactsObjectKey; } /** *

The S3 object key for a build artifacts .zip file that contains .jar or * .class files. This is required for a code review with security analysis. For * more information, see Create * code reviews with GitHub Actions in the Amazon CodeGuru Reviewer User * Guide.

*/ inline bool BuildArtifactsObjectKeyHasBeenSet() const { return m_buildArtifactsObjectKeyHasBeenSet; } /** *

The S3 object key for a build artifacts .zip file that contains .jar or * .class files. This is required for a code review with security analysis. For * more information, see Create * code reviews with GitHub Actions in the Amazon CodeGuru Reviewer User * Guide.

*/ inline void SetBuildArtifactsObjectKey(const Aws::String& value) { m_buildArtifactsObjectKeyHasBeenSet = true; m_buildArtifactsObjectKey = value; } /** *

The S3 object key for a build artifacts .zip file that contains .jar or * .class files. This is required for a code review with security analysis. For * more information, see Create * code reviews with GitHub Actions in the Amazon CodeGuru Reviewer User * Guide.

*/ inline void SetBuildArtifactsObjectKey(Aws::String&& value) { m_buildArtifactsObjectKeyHasBeenSet = true; m_buildArtifactsObjectKey = std::move(value); } /** *

The S3 object key for a build artifacts .zip file that contains .jar or * .class files. This is required for a code review with security analysis. For * more information, see Create * code reviews with GitHub Actions in the Amazon CodeGuru Reviewer User * Guide.

*/ inline void SetBuildArtifactsObjectKey(const char* value) { m_buildArtifactsObjectKeyHasBeenSet = true; m_buildArtifactsObjectKey.assign(value); } /** *

The S3 object key for a build artifacts .zip file that contains .jar or * .class files. This is required for a code review with security analysis. For * more information, see Create * code reviews with GitHub Actions in the Amazon CodeGuru Reviewer User * Guide.

*/ inline CodeArtifacts& WithBuildArtifactsObjectKey(const Aws::String& value) { SetBuildArtifactsObjectKey(value); return *this;} /** *

The S3 object key for a build artifacts .zip file that contains .jar or * .class files. This is required for a code review with security analysis. For * more information, see Create * code reviews with GitHub Actions in the Amazon CodeGuru Reviewer User * Guide.

*/ inline CodeArtifacts& WithBuildArtifactsObjectKey(Aws::String&& value) { SetBuildArtifactsObjectKey(std::move(value)); return *this;} /** *

The S3 object key for a build artifacts .zip file that contains .jar or * .class files. This is required for a code review with security analysis. For * more information, see Create * code reviews with GitHub Actions in the Amazon CodeGuru Reviewer User * Guide.

*/ inline CodeArtifacts& WithBuildArtifactsObjectKey(const char* value) { SetBuildArtifactsObjectKey(value); return *this;} private: Aws::String m_sourceCodeArtifactsObjectKey; bool m_sourceCodeArtifactsObjectKeyHasBeenSet = false; Aws::String m_buildArtifactsObjectKey; bool m_buildArtifactsObjectKeyHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruReviewer } // namespace Aws