/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Lightsail { namespace Model { /** */ class CreateBucketRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API CreateBucketRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateBucket"; } AWS_LIGHTSAIL_API Aws::String SerializePayload() const override; AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name for the bucket.

For more information about bucket names, see * Bucket * naming rules in Amazon Lightsail in the Amazon Lightsail Developer * Guide.

*/ inline const Aws::String& GetBucketName() const{ return m_bucketName; } /** *

The name for the bucket.

For more information about bucket names, see * Bucket * naming rules in Amazon Lightsail in the Amazon Lightsail Developer * Guide.

*/ inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; } /** *

The name for the bucket.

For more information about bucket names, see * Bucket * naming rules in Amazon Lightsail in the Amazon Lightsail Developer * Guide.

*/ inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; } /** *

The name for the bucket.

For more information about bucket names, see * Bucket * naming rules in Amazon Lightsail in the Amazon Lightsail Developer * Guide.

*/ inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); } /** *

The name for the bucket.

For more information about bucket names, see * Bucket * naming rules in Amazon Lightsail in the Amazon Lightsail Developer * Guide.

*/ inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); } /** *

The name for the bucket.

For more information about bucket names, see * Bucket * naming rules in Amazon Lightsail in the Amazon Lightsail Developer * Guide.

*/ inline CreateBucketRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;} /** *

The name for the bucket.

For more information about bucket names, see * Bucket * naming rules in Amazon Lightsail in the Amazon Lightsail Developer * Guide.

*/ inline CreateBucketRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;} /** *

The name for the bucket.

For more information about bucket names, see * Bucket * naming rules in Amazon Lightsail in the Amazon Lightsail Developer * Guide.

*/ inline CreateBucketRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;} /** *

The ID of the bundle to use for the bucket.

A bucket bundle specifies * the monthly cost, storage space, and data transfer quota for a bucket.

*

Use the GetBucketBundles * action to get a list of bundle IDs that you can specify.

Use the UpdateBucketBundle * action to change the bundle after the bucket is created.

*/ inline const Aws::String& GetBundleId() const{ return m_bundleId; } /** *

The ID of the bundle to use for the bucket.

A bucket bundle specifies * the monthly cost, storage space, and data transfer quota for a bucket.

*

Use the GetBucketBundles * action to get a list of bundle IDs that you can specify.

Use the UpdateBucketBundle * action to change the bundle after the bucket is created.

*/ inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; } /** *

The ID of the bundle to use for the bucket.

A bucket bundle specifies * the monthly cost, storage space, and data transfer quota for a bucket.

*

Use the GetBucketBundles * action to get a list of bundle IDs that you can specify.

Use the UpdateBucketBundle * action to change the bundle after the bucket is created.

*/ inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; } /** *

The ID of the bundle to use for the bucket.

A bucket bundle specifies * the monthly cost, storage space, and data transfer quota for a bucket.

*

Use the GetBucketBundles * action to get a list of bundle IDs that you can specify.

Use the UpdateBucketBundle * action to change the bundle after the bucket is created.

*/ inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); } /** *

The ID of the bundle to use for the bucket.

A bucket bundle specifies * the monthly cost, storage space, and data transfer quota for a bucket.

*

Use the GetBucketBundles * action to get a list of bundle IDs that you can specify.

Use the UpdateBucketBundle * action to change the bundle after the bucket is created.

*/ inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); } /** *

The ID of the bundle to use for the bucket.

A bucket bundle specifies * the monthly cost, storage space, and data transfer quota for a bucket.

*

Use the GetBucketBundles * action to get a list of bundle IDs that you can specify.

Use the UpdateBucketBundle * action to change the bundle after the bucket is created.

*/ inline CreateBucketRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;} /** *

The ID of the bundle to use for the bucket.

A bucket bundle specifies * the monthly cost, storage space, and data transfer quota for a bucket.

*

Use the GetBucketBundles * action to get a list of bundle IDs that you can specify.

Use the UpdateBucketBundle * action to change the bundle after the bucket is created.

*/ inline CreateBucketRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;} /** *

The ID of the bundle to use for the bucket.

A bucket bundle specifies * the monthly cost, storage space, and data transfer quota for a bucket.

*

Use the GetBucketBundles * action to get a list of bundle IDs that you can specify.

Use the UpdateBucketBundle * action to change the bundle after the bucket is created.

*/ inline CreateBucketRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;} /** *

The tag keys and optional values to add to the bucket during creation.

*

Use the TagResource * action to tag the bucket after it's created.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tag keys and optional values to add to the bucket during creation.

*

Use the TagResource * action to tag the bucket after it's created.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tag keys and optional values to add to the bucket during creation.

*

Use the TagResource * action to tag the bucket after it's created.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tag keys and optional values to add to the bucket during creation.

*

Use the TagResource * action to tag the bucket after it's created.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tag keys and optional values to add to the bucket during creation.

*

Use the TagResource * action to tag the bucket after it's created.

*/ inline CreateBucketRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tag keys and optional values to add to the bucket during creation.

*

Use the TagResource * action to tag the bucket after it's created.

*/ inline CreateBucketRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tag keys and optional values to add to the bucket during creation.

*

Use the TagResource * action to tag the bucket after it's created.

*/ inline CreateBucketRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tag keys and optional values to add to the bucket during creation.

*

Use the TagResource * action to tag the bucket after it's created.

*/ inline CreateBucketRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

A Boolean value that indicates whether to enable versioning of objects in the * bucket.

For more information about versioning, see Enabling * and suspending object versioning in a bucket in Amazon Lightsail in the * Amazon Lightsail Developer Guide.

*/ inline bool GetEnableObjectVersioning() const{ return m_enableObjectVersioning; } /** *

A Boolean value that indicates whether to enable versioning of objects in the * bucket.

For more information about versioning, see Enabling * and suspending object versioning in a bucket in Amazon Lightsail in the * Amazon Lightsail Developer Guide.

*/ inline bool EnableObjectVersioningHasBeenSet() const { return m_enableObjectVersioningHasBeenSet; } /** *

A Boolean value that indicates whether to enable versioning of objects in the * bucket.

For more information about versioning, see Enabling * and suspending object versioning in a bucket in Amazon Lightsail in the * Amazon Lightsail Developer Guide.

*/ inline void SetEnableObjectVersioning(bool value) { m_enableObjectVersioningHasBeenSet = true; m_enableObjectVersioning = value; } /** *

A Boolean value that indicates whether to enable versioning of objects in the * bucket.

For more information about versioning, see Enabling * and suspending object versioning in a bucket in Amazon Lightsail in the * Amazon Lightsail Developer Guide.

*/ inline CreateBucketRequest& WithEnableObjectVersioning(bool value) { SetEnableObjectVersioning(value); return *this;} private: Aws::String m_bucketName; bool m_bucketNameHasBeenSet = false; Aws::String m_bundleId; bool m_bundleIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; bool m_enableObjectVersioning; bool m_enableObjectVersioningHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws