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

Specifies the details for the file location for the file that's being used in * the workflow. Only applicable if you are using S3 storage.

See * Also:

AWS * API Reference

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

Specifies the S3 bucket that contains the file being used.

*/ inline const Aws::String& GetBucket() const{ return m_bucket; } /** *

Specifies the S3 bucket that contains the file being used.

*/ inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } /** *

Specifies the S3 bucket that contains the file being used.

*/ inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } /** *

Specifies the S3 bucket that contains the file being used.

*/ inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } /** *

Specifies the S3 bucket that contains the file being used.

*/ inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } /** *

Specifies the S3 bucket that contains the file being used.

*/ inline S3FileLocation& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *

Specifies the S3 bucket that contains the file being used.

*/ inline S3FileLocation& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} /** *

Specifies the S3 bucket that contains the file being used.

*/ inline S3FileLocation& WithBucket(const char* value) { SetBucket(value); return *this;} /** *

The name assigned to the file when it was created in Amazon S3. You use the * object key to retrieve the object.

*/ inline const Aws::String& GetKey() const{ return m_key; } /** *

The name assigned to the file when it was created in Amazon S3. You use the * object key to retrieve the object.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

The name assigned to the file when it was created in Amazon S3. You use the * object key to retrieve the object.

*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *

The name assigned to the file when it was created in Amazon S3. You use the * object key to retrieve the object.

*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

The name assigned to the file when it was created in Amazon S3. You use the * object key to retrieve the object.

*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *

The name assigned to the file when it was created in Amazon S3. You use the * object key to retrieve the object.

*/ inline S3FileLocation& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *

The name assigned to the file when it was created in Amazon S3. You use the * object key to retrieve the object.

*/ inline S3FileLocation& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *

The name assigned to the file when it was created in Amazon S3. You use the * object key to retrieve the object.

*/ inline S3FileLocation& WithKey(const char* value) { SetKey(value); return *this;} /** *

Specifies the file version.

*/ inline const Aws::String& GetVersionId() const{ return m_versionId; } /** *

Specifies the file version.

*/ inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; } /** *

Specifies the file version.

*/ inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; } /** *

Specifies the file version.

*/ inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); } /** *

Specifies the file version.

*/ inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); } /** *

Specifies the file version.

*/ inline S3FileLocation& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;} /** *

Specifies the file version.

*/ inline S3FileLocation& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;} /** *

Specifies the file version.

*/ inline S3FileLocation& WithVersionId(const char* value) { SetVersionId(value); return *this;} /** *

The entity tag is a hash of the object. The ETag reflects changes only to the * contents of an object, not its metadata.

*/ inline const Aws::String& GetEtag() const{ return m_etag; } /** *

The entity tag is a hash of the object. The ETag reflects changes only to the * contents of an object, not its metadata.

*/ inline bool EtagHasBeenSet() const { return m_etagHasBeenSet; } /** *

The entity tag is a hash of the object. The ETag reflects changes only to the * contents of an object, not its metadata.

*/ inline void SetEtag(const Aws::String& value) { m_etagHasBeenSet = true; m_etag = value; } /** *

The entity tag is a hash of the object. The ETag reflects changes only to the * contents of an object, not its metadata.

*/ inline void SetEtag(Aws::String&& value) { m_etagHasBeenSet = true; m_etag = std::move(value); } /** *

The entity tag is a hash of the object. The ETag reflects changes only to the * contents of an object, not its metadata.

*/ inline void SetEtag(const char* value) { m_etagHasBeenSet = true; m_etag.assign(value); } /** *

The entity tag is a hash of the object. The ETag reflects changes only to the * contents of an object, not its metadata.

*/ inline S3FileLocation& WithEtag(const Aws::String& value) { SetEtag(value); return *this;} /** *

The entity tag is a hash of the object. The ETag reflects changes only to the * contents of an object, not its metadata.

*/ inline S3FileLocation& WithEtag(Aws::String&& value) { SetEtag(std::move(value)); return *this;} /** *

The entity tag is a hash of the object. The ETag reflects changes only to the * contents of an object, not its metadata.

*/ inline S3FileLocation& WithEtag(const char* value) { SetEtag(value); return *this;} private: Aws::String m_bucket; bool m_bucketHasBeenSet = false; Aws::String m_key; bool m_keyHasBeenSet = false; Aws::String m_versionId; bool m_versionIdHasBeenSet = false; Aws::String m_etag; bool m_etagHasBeenSet = false; }; } // namespace Model } // namespace Transfer } // namespace Aws