/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies the customer input Amazon S3 file location. If it is used inside
* You need to provide the bucket and key. The key can
* represent either a path or a file. This is determined by whether or not you end
* the key value with the forward slash (/) character. If the final character is
* "/", then your file is copied to the folder, and its name does not change. If,
* rather, the final character is alphanumeric, your uploaded file is renamed to
* the path value. In this case, if a file with that name already exists, it is
* overwritten. For example, if your path is
* copyStepDetails.DestinationFileLocation
, it should be the S3 copy
* destination.shared-files/bob/
, your uploaded files are copied to the
* shared-files/bob/
, folder. If your path is
* shared-files/today
, each uploaded file is copied to the
* shared-files
folder and named today
: each upload
* overwrites the previous version of the bob file.See Also:
* AWS
* API Reference
Specifies the S3 bucket for the customer input file.
*/ inline const Aws::String& GetBucket() const{ return m_bucket; } /** *Specifies the S3 bucket for the customer input file.
*/ inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } /** *Specifies the S3 bucket for the customer input file.
*/ inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } /** *Specifies the S3 bucket for the customer input file.
*/ inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } /** *Specifies the S3 bucket for the customer input file.
*/ inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } /** *Specifies the S3 bucket for the customer input file.
*/ inline S3InputFileLocation& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *Specifies the S3 bucket for the customer input file.
*/ inline S3InputFileLocation& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} /** *Specifies the S3 bucket for the customer input file.
*/ inline S3InputFileLocation& 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 S3InputFileLocation& 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 S3InputFileLocation& 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 S3InputFileLocation& WithKey(const char* value) { SetKey(value); return *this;} private: Aws::String m_bucket; bool m_bucketHasBeenSet = false; Aws::String m_key; bool m_keyHasBeenSet = false; }; } // namespace Model } // namespace Transfer } // namespace Aws