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

Specifies the name of an S3 bucket and a CodeArtifacts object * that contains the S3 object keys for a source code .zip file and for a build * artifacts .zip file that contains .jar or .class files.

See Also:

* AWS * API Reference

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

The name of the S3 bucket used for associating a new S3 repository. It must * begin with codeguru-reviewer-.

*/ inline const Aws::String& GetBucketName() const{ return m_bucketName; } /** *

The name of the S3 bucket used for associating a new S3 repository. It must * begin with codeguru-reviewer-.

*/ inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; } /** *

The name of the S3 bucket used for associating a new S3 repository. It must * begin with codeguru-reviewer-.

*/ inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; } /** *

The name of the S3 bucket used for associating a new S3 repository. It must * begin with codeguru-reviewer-.

*/ inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); } /** *

The name of the S3 bucket used for associating a new S3 repository. It must * begin with codeguru-reviewer-.

*/ inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); } /** *

The name of the S3 bucket used for associating a new S3 repository. It must * begin with codeguru-reviewer-.

*/ inline S3RepositoryDetails& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;} /** *

The name of the S3 bucket used for associating a new S3 repository. It must * begin with codeguru-reviewer-.

*/ inline S3RepositoryDetails& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;} /** *

The name of the S3 bucket used for associating a new S3 repository. It must * begin with codeguru-reviewer-.

*/ inline S3RepositoryDetails& WithBucketName(const char* value) { SetBucketName(value); return *this;} /** *

A CodeArtifacts object. The CodeArtifacts object * includes the S3 object key for a source code .zip file and for a build artifacts * .zip file that contains .jar or .class files.

*/ inline const CodeArtifacts& GetCodeArtifacts() const{ return m_codeArtifacts; } /** *

A CodeArtifacts object. The CodeArtifacts object * includes the S3 object key for a source code .zip file and for a build artifacts * .zip file that contains .jar or .class files.

*/ inline bool CodeArtifactsHasBeenSet() const { return m_codeArtifactsHasBeenSet; } /** *

A CodeArtifacts object. The CodeArtifacts object * includes the S3 object key for a source code .zip file and for a build artifacts * .zip file that contains .jar or .class files.

*/ inline void SetCodeArtifacts(const CodeArtifacts& value) { m_codeArtifactsHasBeenSet = true; m_codeArtifacts = value; } /** *

A CodeArtifacts object. The CodeArtifacts object * includes the S3 object key for a source code .zip file and for a build artifacts * .zip file that contains .jar or .class files.

*/ inline void SetCodeArtifacts(CodeArtifacts&& value) { m_codeArtifactsHasBeenSet = true; m_codeArtifacts = std::move(value); } /** *

A CodeArtifacts object. The CodeArtifacts object * includes the S3 object key for a source code .zip file and for a build artifacts * .zip file that contains .jar or .class files.

*/ inline S3RepositoryDetails& WithCodeArtifacts(const CodeArtifacts& value) { SetCodeArtifacts(value); return *this;} /** *

A CodeArtifacts object. The CodeArtifacts object * includes the S3 object key for a source code .zip file and for a build artifacts * .zip file that contains .jar or .class files.

*/ inline S3RepositoryDetails& WithCodeArtifacts(CodeArtifacts&& value) { SetCodeArtifacts(std::move(value)); return *this;} private: Aws::String m_bucketName; bool m_bucketNameHasBeenSet = false; CodeArtifacts m_codeArtifacts; bool m_codeArtifactsHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruReviewer } // namespace Aws