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

The Amazon S3 location where the source code files provided with the project * request are stored.

See Also:

AWS * API Reference

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

The Amazon S3 bucket name where the source code files provided with the * project request are stored.

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

The Amazon S3 bucket name where the source code files provided with the * project request are stored.

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

The Amazon S3 bucket name where the source code files provided with the * project request are stored.

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

The Amazon S3 bucket name where the source code files provided with the * project request are stored.

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

The Amazon S3 bucket name where the source code files provided with the * project request are stored.

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

The Amazon S3 bucket name where the source code files provided with the * project request are stored.

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

The Amazon S3 bucket name where the source code files provided with the * project request are stored.

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

The Amazon S3 bucket name where the source code files provided with the * project request are stored.

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

The Amazon S3 object key where the source code files provided with the * project request are stored.

*/ inline const Aws::String& GetBucketKey() const{ return m_bucketKey; } /** *

The Amazon S3 object key where the source code files provided with the * project request are stored.

*/ inline bool BucketKeyHasBeenSet() const { return m_bucketKeyHasBeenSet; } /** *

The Amazon S3 object key where the source code files provided with the * project request are stored.

*/ inline void SetBucketKey(const Aws::String& value) { m_bucketKeyHasBeenSet = true; m_bucketKey = value; } /** *

The Amazon S3 object key where the source code files provided with the * project request are stored.

*/ inline void SetBucketKey(Aws::String&& value) { m_bucketKeyHasBeenSet = true; m_bucketKey = std::move(value); } /** *

The Amazon S3 object key where the source code files provided with the * project request are stored.

*/ inline void SetBucketKey(const char* value) { m_bucketKeyHasBeenSet = true; m_bucketKey.assign(value); } /** *

The Amazon S3 object key where the source code files provided with the * project request are stored.

*/ inline S3Location& WithBucketKey(const Aws::String& value) { SetBucketKey(value); return *this;} /** *

The Amazon S3 object key where the source code files provided with the * project request are stored.

*/ inline S3Location& WithBucketKey(Aws::String&& value) { SetBucketKey(std::move(value)); return *this;} /** *

The Amazon S3 object key where the source code files provided with the * project request are stored.

*/ inline S3Location& WithBucketKey(const char* value) { SetBucketKey(value); return *this;} private: Aws::String m_bucketName; bool m_bucketNameHasBeenSet = false; Aws::String m_bucketKey; bool m_bucketKeyHasBeenSet = false; }; } // namespace Model } // namespace CodeStar } // namespace Aws