/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTAnalytics { namespace Model { /** *

Configuration information for delivery of dataset contents to Amazon Simple * Storage Service (Amazon S3).

See Also:

AWS * API Reference

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

The name of the S3 bucket to which dataset contents are delivered.

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

The name of the S3 bucket to which dataset contents are delivered.

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

The name of the S3 bucket to which dataset contents are delivered.

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

The name of the S3 bucket to which dataset contents are delivered.

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

The name of the S3 bucket to which dataset contents are delivered.

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

The name of the S3 bucket to which dataset contents are delivered.

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

The name of the S3 bucket to which dataset contents are delivered.

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

The name of the S3 bucket to which dataset contents are delivered.

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

The key of the dataset contents object in an S3 bucket. Each object has a key * that is a unique identifier. Each object has exactly one key.

You can * create a unique key with the following options:

  • Use * !{iotanalytics:scheduleTime} to insert the time of a scheduled SQL * query run.

  • Use !{iotanalytics:versionId} to * insert a unique hash that identifies a dataset content.

  • Use * !{iotanalytics:creationTime} to insert the creation time of a * dataset content.

The following example creates a unique key * for a CSV file: * dataset/mydataset/!{iotanalytics:scheduleTime}/!{iotanalytics:versionId}.csv *

If you don't use !{iotanalytics:versionId} to * specify the key, you might get duplicate keys. For example, you might have two * dataset contents with the same scheduleTime but different * versionIds. This means that one dataset content overwrites the * other.

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

The key of the dataset contents object in an S3 bucket. Each object has a key * that is a unique identifier. Each object has exactly one key.

You can * create a unique key with the following options:

  • Use * !{iotanalytics:scheduleTime} to insert the time of a scheduled SQL * query run.

  • Use !{iotanalytics:versionId} to * insert a unique hash that identifies a dataset content.

  • Use * !{iotanalytics:creationTime} to insert the creation time of a * dataset content.

The following example creates a unique key * for a CSV file: * dataset/mydataset/!{iotanalytics:scheduleTime}/!{iotanalytics:versionId}.csv *

If you don't use !{iotanalytics:versionId} to * specify the key, you might get duplicate keys. For example, you might have two * dataset contents with the same scheduleTime but different * versionIds. This means that one dataset content overwrites the * other.

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

The key of the dataset contents object in an S3 bucket. Each object has a key * that is a unique identifier. Each object has exactly one key.

You can * create a unique key with the following options:

  • Use * !{iotanalytics:scheduleTime} to insert the time of a scheduled SQL * query run.

  • Use !{iotanalytics:versionId} to * insert a unique hash that identifies a dataset content.

  • Use * !{iotanalytics:creationTime} to insert the creation time of a * dataset content.

The following example creates a unique key * for a CSV file: * dataset/mydataset/!{iotanalytics:scheduleTime}/!{iotanalytics:versionId}.csv *

If you don't use !{iotanalytics:versionId} to * specify the key, you might get duplicate keys. For example, you might have two * dataset contents with the same scheduleTime but different * versionIds. This means that one dataset content overwrites the * other.

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

The key of the dataset contents object in an S3 bucket. Each object has a key * that is a unique identifier. Each object has exactly one key.

You can * create a unique key with the following options:

  • Use * !{iotanalytics:scheduleTime} to insert the time of a scheduled SQL * query run.

  • Use !{iotanalytics:versionId} to * insert a unique hash that identifies a dataset content.

  • Use * !{iotanalytics:creationTime} to insert the creation time of a * dataset content.

The following example creates a unique key * for a CSV file: * dataset/mydataset/!{iotanalytics:scheduleTime}/!{iotanalytics:versionId}.csv *

If you don't use !{iotanalytics:versionId} to * specify the key, you might get duplicate keys. For example, you might have two * dataset contents with the same scheduleTime but different * versionIds. This means that one dataset content overwrites the * other.

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

The key of the dataset contents object in an S3 bucket. Each object has a key * that is a unique identifier. Each object has exactly one key.

You can * create a unique key with the following options:

  • Use * !{iotanalytics:scheduleTime} to insert the time of a scheduled SQL * query run.

  • Use !{iotanalytics:versionId} to * insert a unique hash that identifies a dataset content.

  • Use * !{iotanalytics:creationTime} to insert the creation time of a * dataset content.

The following example creates a unique key * for a CSV file: * dataset/mydataset/!{iotanalytics:scheduleTime}/!{iotanalytics:versionId}.csv *

If you don't use !{iotanalytics:versionId} to * specify the key, you might get duplicate keys. For example, you might have two * dataset contents with the same scheduleTime but different * versionIds. This means that one dataset content overwrites the * other.

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

The key of the dataset contents object in an S3 bucket. Each object has a key * that is a unique identifier. Each object has exactly one key.

You can * create a unique key with the following options:

  • Use * !{iotanalytics:scheduleTime} to insert the time of a scheduled SQL * query run.

  • Use !{iotanalytics:versionId} to * insert a unique hash that identifies a dataset content.

  • Use * !{iotanalytics:creationTime} to insert the creation time of a * dataset content.

The following example creates a unique key * for a CSV file: * dataset/mydataset/!{iotanalytics:scheduleTime}/!{iotanalytics:versionId}.csv *

If you don't use !{iotanalytics:versionId} to * specify the key, you might get duplicate keys. For example, you might have two * dataset contents with the same scheduleTime but different * versionIds. This means that one dataset content overwrites the * other.

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

The key of the dataset contents object in an S3 bucket. Each object has a key * that is a unique identifier. Each object has exactly one key.

You can * create a unique key with the following options:

  • Use * !{iotanalytics:scheduleTime} to insert the time of a scheduled SQL * query run.

  • Use !{iotanalytics:versionId} to * insert a unique hash that identifies a dataset content.

  • Use * !{iotanalytics:creationTime} to insert the creation time of a * dataset content.

The following example creates a unique key * for a CSV file: * dataset/mydataset/!{iotanalytics:scheduleTime}/!{iotanalytics:versionId}.csv *

If you don't use !{iotanalytics:versionId} to * specify the key, you might get duplicate keys. For example, you might have two * dataset contents with the same scheduleTime but different * versionIds. This means that one dataset content overwrites the * other.

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

The key of the dataset contents object in an S3 bucket. Each object has a key * that is a unique identifier. Each object has exactly one key.

You can * create a unique key with the following options:

  • Use * !{iotanalytics:scheduleTime} to insert the time of a scheduled SQL * query run.

  • Use !{iotanalytics:versionId} to * insert a unique hash that identifies a dataset content.

  • Use * !{iotanalytics:creationTime} to insert the creation time of a * dataset content.

The following example creates a unique key * for a CSV file: * dataset/mydataset/!{iotanalytics:scheduleTime}/!{iotanalytics:versionId}.csv *

If you don't use !{iotanalytics:versionId} to * specify the key, you might get duplicate keys. For example, you might have two * dataset contents with the same scheduleTime but different * versionIds. This means that one dataset content overwrites the * other.

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

Configuration information for coordination with Glue, a fully managed * extract, transform and load (ETL) service.

*/ inline const GlueConfiguration& GetGlueConfiguration() const{ return m_glueConfiguration; } /** *

Configuration information for coordination with Glue, a fully managed * extract, transform and load (ETL) service.

*/ inline bool GlueConfigurationHasBeenSet() const { return m_glueConfigurationHasBeenSet; } /** *

Configuration information for coordination with Glue, a fully managed * extract, transform and load (ETL) service.

*/ inline void SetGlueConfiguration(const GlueConfiguration& value) { m_glueConfigurationHasBeenSet = true; m_glueConfiguration = value; } /** *

Configuration information for coordination with Glue, a fully managed * extract, transform and load (ETL) service.

*/ inline void SetGlueConfiguration(GlueConfiguration&& value) { m_glueConfigurationHasBeenSet = true; m_glueConfiguration = std::move(value); } /** *

Configuration information for coordination with Glue, a fully managed * extract, transform and load (ETL) service.

*/ inline S3DestinationConfiguration& WithGlueConfiguration(const GlueConfiguration& value) { SetGlueConfiguration(value); return *this;} /** *

Configuration information for coordination with Glue, a fully managed * extract, transform and load (ETL) service.

*/ inline S3DestinationConfiguration& WithGlueConfiguration(GlueConfiguration&& value) { SetGlueConfiguration(std::move(value)); return *this;} /** *

The ARN of the role that grants IoT Analytics permission to interact with * your Amazon S3 and Glue 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 and Glue resources.

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

The ARN of the role that grants IoT Analytics permission to interact with * your Amazon S3 and Glue 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 and Glue 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 and Glue 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 and Glue resources.

*/ inline S3DestinationConfiguration& 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 and Glue resources.

*/ inline S3DestinationConfiguration& 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 and Glue resources.

*/ inline S3DestinationConfiguration& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::String m_bucket; bool m_bucketHasBeenSet = false; Aws::String m_key; bool m_keyHasBeenSet = false; GlueConfiguration m_glueConfiguration; bool m_glueConfigurationHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws