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

Information about an associated repository in an S3 bucket. The associated * repository contains a source code .zip file and a build artifacts .zip file that * contains .jar or .class files.

See Also:

AWS * API Reference

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

The name of the repository when the ProviderType is * S3Bucket.

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

The name of the repository when the ProviderType is * S3Bucket.

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

The name of the repository when the ProviderType is * S3Bucket.

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

The name of the repository when the ProviderType is * S3Bucket.

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

The name of the repository when the ProviderType is * S3Bucket.

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

The name of the repository when the ProviderType is * S3Bucket.

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

The name of the repository when the ProviderType is * S3Bucket.

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

The name of the repository when the ProviderType is * S3Bucket.

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

An S3RepositoryDetails object that specifies the name of an S3 * bucket and a CodeArtifacts object. The CodeArtifacts * object includes the S3 object keys for a source code .zip file and for a build * artifacts .zip file.

*/ inline const S3RepositoryDetails& GetDetails() const{ return m_details; } /** *

An S3RepositoryDetails object that specifies the name of an S3 * bucket and a CodeArtifacts object. The CodeArtifacts * object includes the S3 object keys for a source code .zip file and for a build * artifacts .zip file.

*/ inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } /** *

An S3RepositoryDetails object that specifies the name of an S3 * bucket and a CodeArtifacts object. The CodeArtifacts * object includes the S3 object keys for a source code .zip file and for a build * artifacts .zip file.

*/ inline void SetDetails(const S3RepositoryDetails& value) { m_detailsHasBeenSet = true; m_details = value; } /** *

An S3RepositoryDetails object that specifies the name of an S3 * bucket and a CodeArtifacts object. The CodeArtifacts * object includes the S3 object keys for a source code .zip file and for a build * artifacts .zip file.

*/ inline void SetDetails(S3RepositoryDetails&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); } /** *

An S3RepositoryDetails object that specifies the name of an S3 * bucket and a CodeArtifacts object. The CodeArtifacts * object includes the S3 object keys for a source code .zip file and for a build * artifacts .zip file.

*/ inline S3BucketRepository& WithDetails(const S3RepositoryDetails& value) { SetDetails(value); return *this;} /** *

An S3RepositoryDetails object that specifies the name of an S3 * bucket and a CodeArtifacts object. The CodeArtifacts * object includes the S3 object keys for a source code .zip file and for a build * artifacts .zip file.

*/ inline S3BucketRepository& WithDetails(S3RepositoryDetails&& value) { SetDetails(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; S3RepositoryDetails m_details; bool m_detailsHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruReviewer } // namespace Aws