/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides the S3 bucket name and object name. The region for the S3
* bucket containing the S3 object must match the region you use for Amazon
* Rekognition operations. For Amazon Rekognition to process an S3 object,
* the user must have permission to access the S3 object. For more information, see
* How Amazon Rekognition works with IAM in the Amazon Rekognition Developer Guide.
* See Also:
AWS
* API Reference
Name of the S3 bucket.
*/ inline const Aws::String& GetBucket() const{ return m_bucket; } /** *Name of the S3 bucket.
*/ inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } /** *Name of the S3 bucket.
*/ inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } /** *Name of the S3 bucket.
*/ inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } /** *Name of the S3 bucket.
*/ inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } /** *Name of the S3 bucket.
*/ inline S3Object& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *Name of the S3 bucket.
*/ inline S3Object& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} /** *Name of the S3 bucket.
*/ inline S3Object& WithBucket(const char* value) { SetBucket(value); return *this;} /** *S3 object key name.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *S3 object key name.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *S3 object key name.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *S3 object key name.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *S3 object key name.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *S3 object key name.
*/ inline S3Object& WithName(const Aws::String& value) { SetName(value); return *this;} /** *S3 object key name.
*/ inline S3Object& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *S3 object key name.
*/ inline S3Object& WithName(const char* value) { SetName(value); return *this;} /** *If the bucket is versioning enabled, you can specify the object version.
*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *If the bucket is versioning enabled, you can specify the object version.
*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *If the bucket is versioning enabled, you can specify the object version.
*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *If the bucket is versioning enabled, you can specify the object version.
*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *If the bucket is versioning enabled, you can specify the object version.
*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *If the bucket is versioning enabled, you can specify the object version.
*/ inline S3Object& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *If the bucket is versioning enabled, you can specify the object version.
*/ inline S3Object& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *If the bucket is versioning enabled, you can specify the object version.
*/ inline S3Object& WithVersion(const char* value) { SetVersion(value); return *this;} private: Aws::String m_bucket; bool m_bucketHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws