/** * 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 { /** *

Contains information about the data store that you manage.

See * Also:

AWS * API Reference

*/ class CustomerManagedDatastoreS3StorageSummary { public: AWS_IOTANALYTICS_API CustomerManagedDatastoreS3StorageSummary(); AWS_IOTANALYTICS_API CustomerManagedDatastoreS3StorageSummary(Aws::Utils::Json::JsonView jsonValue); AWS_IOTANALYTICS_API CustomerManagedDatastoreS3StorageSummary& 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 CustomerManagedDatastoreS3StorageSummary& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *

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

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

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

*/ inline CustomerManagedDatastoreS3StorageSummary& 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 CustomerManagedDatastoreS3StorageSummary& 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 CustomerManagedDatastoreS3StorageSummary& 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 CustomerManagedDatastoreS3StorageSummary& WithKeyPrefix(const char* value) { SetKeyPrefix(value); return *this;} /** *

The ARN of the role that grants IoT Analytics permission to interact with * your Amazon S3 resources.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The ARN of the role that grants IoT Analytics permission to interact with * your Amazon S3 resources.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The ARN of the role that grants IoT Analytics permission to interact with * your Amazon S3 resources.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The ARN of the role that grants IoT Analytics permission to interact with * your Amazon S3 resources.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The ARN of the role that grants IoT Analytics permission to interact with * your Amazon S3 resources.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The ARN of the role that grants IoT Analytics permission to interact with * your Amazon S3 resources.

*/ inline CustomerManagedDatastoreS3StorageSummary& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of the role that grants IoT Analytics permission to interact with * your Amazon S3 resources.

*/ inline CustomerManagedDatastoreS3StorageSummary& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The ARN of the role that grants IoT Analytics permission to interact with * your Amazon S3 resources.

*/ inline CustomerManagedDatastoreS3StorageSummary& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::String m_bucket; bool m_bucketHasBeenSet = false; Aws::String m_keyPrefix; bool m_keyPrefixHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws