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

Contains information about a customer managed Amazon S3 bucket.

See * Also:

AWS * API Reference

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

The ARN * of the Amazon S3 object. For more information about how to find the ARN for an * Amazon S3 object, see Amazon * S3 resources in the Amazon Simple Storage Service User Guide.

*/ inline const Aws::String& GetS3ResourceArn() const{ return m_s3ResourceArn; } /** *

The ARN * of the Amazon S3 object. For more information about how to find the ARN for an * Amazon S3 object, see Amazon * S3 resources in the Amazon Simple Storage Service User Guide.

*/ inline bool S3ResourceArnHasBeenSet() const { return m_s3ResourceArnHasBeenSet; } /** *

The ARN * of the Amazon S3 object. For more information about how to find the ARN for an * Amazon S3 object, see Amazon * S3 resources in the Amazon Simple Storage Service User Guide.

*/ inline void SetS3ResourceArn(const Aws::String& value) { m_s3ResourceArnHasBeenSet = true; m_s3ResourceArn = value; } /** *

The ARN * of the Amazon S3 object. For more information about how to find the ARN for an * Amazon S3 object, see Amazon * S3 resources in the Amazon Simple Storage Service User Guide.

*/ inline void SetS3ResourceArn(Aws::String&& value) { m_s3ResourceArnHasBeenSet = true; m_s3ResourceArn = std::move(value); } /** *

The ARN * of the Amazon S3 object. For more information about how to find the ARN for an * Amazon S3 object, see Amazon * S3 resources in the Amazon Simple Storage Service User Guide.

*/ inline void SetS3ResourceArn(const char* value) { m_s3ResourceArnHasBeenSet = true; m_s3ResourceArn.assign(value); } /** *

The ARN * of the Amazon S3 object. For more information about how to find the ARN for an * Amazon S3 object, see Amazon * S3 resources in the Amazon Simple Storage Service User Guide.

*/ inline CustomerManagedS3Storage& WithS3ResourceArn(const Aws::String& value) { SetS3ResourceArn(value); return *this;} /** *

The ARN * of the Amazon S3 object. For more information about how to find the ARN for an * Amazon S3 object, see Amazon * S3 resources in the Amazon Simple Storage Service User Guide.

*/ inline CustomerManagedS3Storage& WithS3ResourceArn(Aws::String&& value) { SetS3ResourceArn(std::move(value)); return *this;} /** *

The ARN * of the Amazon S3 object. For more information about how to find the ARN for an * Amazon S3 object, see Amazon * S3 resources in the Amazon Simple Storage Service User Guide.

*/ inline CustomerManagedS3Storage& WithS3ResourceArn(const char* value) { SetS3ResourceArn(value); return *this;} /** *

The ARN * of the Identity and Access Management role that allows IoT SiteWise to send data * to Amazon S3.

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

The ARN * of the Identity and Access Management role that allows IoT SiteWise to send data * to Amazon S3.

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

The ARN * of the Identity and Access Management role that allows IoT SiteWise to send data * to Amazon S3.

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

The ARN * of the Identity and Access Management role that allows IoT SiteWise to send data * to Amazon S3.

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

The ARN * of the Identity and Access Management role that allows IoT SiteWise to send data * to Amazon S3.

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

The ARN * of the Identity and Access Management role that allows IoT SiteWise to send data * to Amazon S3.

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

The ARN * of the Identity and Access Management role that allows IoT SiteWise to send data * to Amazon S3.

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

The ARN * of the Identity and Access Management role that allows IoT SiteWise to send data * to Amazon S3.

*/ inline CustomerManagedS3Storage& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::String m_s3ResourceArn; bool m_s3ResourceArnHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws