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

Used to store data used by IoT SiteWise in an Amazon S3 bucket that you * manage. You can't change the choice of Amazon S3 storage after your data store * is created.

See Also:

AWS * API Reference

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

The name of the Amazon S3 bucket where your data is stored.

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

The name of the Amazon S3 bucket where your data is stored.

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

The name of the Amazon S3 bucket where your data is stored.

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

The name of the Amazon S3 bucket where your data is stored.

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

The name of the Amazon S3 bucket where your data is stored.

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

The name of the Amazon S3 bucket where your data is stored.

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

The name of the Amazon S3 bucket where your data is stored.

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

The name of the Amazon S3 bucket where your data is stored.

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

(Optional) The prefix used to create the keys of the data store data * objects. Each object in an Amazon S3 bucket has a key that is its unique * identifier in the bucket. Each object in a bucket has exactly one key. The * prefix must end with a forward slash (/).

*/ inline const Aws::String& GetKeyPrefix() const{ return m_keyPrefix; } /** *

(Optional) The prefix used to create the keys of the data store data * objects. Each object in an Amazon S3 bucket has a key that is its unique * identifier in the bucket. Each object in a bucket has exactly one key. The * prefix must end with a forward slash (/).

*/ inline bool KeyPrefixHasBeenSet() const { return m_keyPrefixHasBeenSet; } /** *

(Optional) The prefix used to create the keys of the data store data * objects. Each object in an Amazon S3 bucket has a key that is its unique * identifier in the bucket. Each object in a bucket has exactly one key. The * prefix must end with a forward slash (/).

*/ inline void SetKeyPrefix(const Aws::String& value) { m_keyPrefixHasBeenSet = true; m_keyPrefix = value; } /** *

(Optional) The prefix used to create the keys of the data store data * objects. Each object in an Amazon S3 bucket has a key that is its unique * identifier in the bucket. Each object in a bucket has exactly one key. The * prefix must end with a forward slash (/).

*/ inline void SetKeyPrefix(Aws::String&& value) { m_keyPrefixHasBeenSet = true; m_keyPrefix = std::move(value); } /** *

(Optional) The prefix used to create the keys of the data store data * objects. Each object in an Amazon S3 bucket has a key that is its unique * identifier in the bucket. Each object in a bucket has exactly one key. The * prefix must end with a forward slash (/).

*/ inline void SetKeyPrefix(const char* value) { m_keyPrefixHasBeenSet = true; m_keyPrefix.assign(value); } /** *

(Optional) The prefix used to create the keys of the data store data * objects. Each object in an Amazon S3 bucket has a key that is its unique * identifier in the bucket. Each object in a bucket has exactly one key. The * prefix must end with a forward slash (/).

*/ inline IotSiteWiseCustomerManagedDatastoreS3Storage& WithKeyPrefix(const Aws::String& value) { SetKeyPrefix(value); return *this;} /** *

(Optional) The prefix used to create the keys of the data store data * objects. Each object in an Amazon S3 bucket has a key that is its unique * identifier in the bucket. Each object in a bucket has exactly one key. The * prefix must end with a forward slash (/).

*/ inline IotSiteWiseCustomerManagedDatastoreS3Storage& WithKeyPrefix(Aws::String&& value) { SetKeyPrefix(std::move(value)); return *this;} /** *

(Optional) The prefix used to create the keys of the data store data * objects. Each object in an Amazon S3 bucket has a key that is its unique * identifier in the bucket. Each object in a bucket has exactly one key. The * prefix must end with a forward slash (/).

*/ inline IotSiteWiseCustomerManagedDatastoreS3Storage& WithKeyPrefix(const char* value) { SetKeyPrefix(value); return *this;} private: Aws::String m_bucket; bool m_bucketHasBeenSet = false; Aws::String m_keyPrefix; bool m_keyPrefixHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws