text: ﻿/*
  * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License").
  * You may not use this file except in compliance with the License.
  * A copy of the License is located at
  *
  *  http://aws.amazon.com/apache2.0
  *
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
  
  #pragma once
  #include <aws/iotanalytics/IoTAnalytics_EXPORTS.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <utility>
  
  namespace Aws
  {
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
    class JsonView;
  } // namespace Json
  } // namespace Utils
  namespace IoTAnalytics
  {
  namespace Model
  {
  
    /**
     * <p>Use this to store data store data in an S3 bucket that you manage. When
     * customer managed storage is selected, the "retentionPeriod" parameter is
     * ignored. The choice of service-managed or customer-managed S3 storage cannot be
     * changed after creation of the data store.</p><p><h3>See Also:</h3>   <a
     * href="http://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CustomerManagedDatastoreS3Storage">AWS
     * API Reference</a></p>
     */
    class AWS_IOTANALYTICS_API CustomerManagedDatastoreS3Storage
    {
    public:
      CustomerManagedDatastoreS3Storage();
      CustomerManagedDatastoreS3Storage(Aws::Utils::Json::JsonView jsonValue);
      CustomerManagedDatastoreS3Storage& operator=(Aws::Utils::Json::JsonView jsonValue);
      Aws::Utils::Json::JsonValue Jsonize() const;
  
  
      /**
       * <p>The name of the Amazon S3 bucket in which data store data is stored.</p>
       */
      inline const Aws::String& GetBucket() const{ return m_bucket; }
  
      /**
       * <p>The name of the Amazon S3 bucket in which data store data is stored.</p>
       */
      inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
  
      /**
       * <p>The name of the Amazon S3 bucket in which data store data is stored.</p>
       */
      inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
  
      /**
       * <p>The name of the Amazon S3 bucket in which data store data is stored.</p>
       */
      inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
  
      /**
       * <p>The name of the Amazon S3 bucket in which data store data is stored.</p>
       */
      inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
  
      /**
       * <p>The name of the Amazon S3 bucket in which data store data is stored.</p>
       */
      inline CustomerManagedDatastoreS3Storage& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
  
      /**
       * <p>The name of the Amazon S3 bucket in which data store data is stored.</p>
       */
      inline CustomerManagedDatastoreS3Storage& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
  
      /**
       * <p>The name of the Amazon S3 bucket in which data store data is stored.</p>
       */
      inline CustomerManagedDatastoreS3Storage& WithBucket(const char* value) { SetBucket(value); return *this;}
  
  
      /**
       * <p>[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
       * within the bucket (each object in a bucket has exactly one key). The prefix must
       * end with a '/'.</p>
       */
      inline const Aws::String& GetKeyPrefix() const{ return m_keyPrefix; }
  
      /**
       * <p>[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
       * within the bucket (each object in a bucket has exactly one key). The prefix must
       * end with a '/'.</p>
       */
      inline bool KeyPrefixHasBeenSet() const { return m_keyPrefixHasBeenSet; }
  
      /**
       * <p>[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
       * within the bucket (each object in a bucket has exactly one key). The prefix must
       * end with a '/'.</p>
       */
      inline void SetKeyPrefix(const Aws::String& value) { m_keyPrefixHasBeenSet = true; m_keyPrefix = value; }
  
      /**
       * <p>[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
       * within the bucket (each object in a bucket has exactly one key). The prefix must
       * end with a '/'.</p>
       */
      inline void SetKeyPrefix(Aws::String&& value) { m_keyPrefixHasBeenSet = true; m_keyPrefix = std::move(value); }
  
      /**
       * <p>[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
       * within the bucket (each object in a bucket has exactly one key). The prefix must
       * end with a '/'.</p>
       */
      inline void SetKeyPrefix(const char* value) { m_keyPrefixHasBeenSet = true; m_keyPrefix.assign(value); }
  
      /**
       * <p>[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
       * within the bucket (each object in a bucket has exactly one key). The prefix must
       * end with a '/'.</p>
       */
      inline CustomerManagedDatastoreS3Storage& WithKeyPrefix(const Aws::String& value) { SetKeyPrefix(value); return *this;}
  
      /**
       * <p>[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
       * within the bucket (each object in a bucket has exactly one key). The prefix must
       * end with a '/'.</p>
       */
      inline CustomerManagedDatastoreS3Storage& WithKeyPrefix(Aws::String&& value) { SetKeyPrefix(std::move(value)); return *this;}
  
      /**
       * <p>[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
       * within the bucket (each object in a bucket has exactly one key). The prefix must
       * end with a '/'.</p>
       */
      inline CustomerManagedDatastoreS3Storage& WithKeyPrefix(const char* value) { SetKeyPrefix(value); return *this;}
  
  
      /**
       * <p>The ARN of the role which grants AWS IoT Analytics permission to interact
       * with your Amazon S3 resources.</p>
       */
      inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
  
      /**
       * <p>The ARN of the role which grants AWS IoT Analytics permission to interact
       * with your Amazon S3 resources.</p>
       */
      inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
  
      /**
       * <p>The ARN of the role which grants AWS IoT Analytics permission to interact
       * with your Amazon S3 resources.</p>
       */
      inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
  
      /**
       * <p>The ARN of the role which grants AWS IoT Analytics permission to interact
       * with your Amazon S3 resources.</p>
       */
      inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
  
      /**
       * <p>The ARN of the role which grants AWS IoT Analytics permission to interact
       * with your Amazon S3 resources.</p>
       */
      inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
  
      /**
       * <p>The ARN of the role which grants AWS IoT Analytics permission to interact
       * with your Amazon S3 resources.</p>
       */
      inline CustomerManagedDatastoreS3Storage& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
  
      /**
       * <p>The ARN of the role which grants AWS IoT Analytics permission to interact
       * with your Amazon S3 resources.</p>
       */
      inline CustomerManagedDatastoreS3Storage& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
  
      /**
       * <p>The ARN of the role which grants AWS IoT Analytics permission to interact
       * with your Amazon S3 resources.</p>
       */
      inline CustomerManagedDatastoreS3Storage& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
  
    private:
  
      Aws::String m_bucket;
      bool m_bucketHasBeenSet;
  
      Aws::String m_keyPrefix;
      bool m_keyPrefixHasBeenSet;
  
      Aws::String m_roleArn;
      bool m_roleArnHasBeenSet;
    };
  
  } // namespace Model
  } // namespace IoTAnalytics
  } // namespace Aws
  