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

Contains the parameters for CreateSpotDatafeedSubscription.

See * Also:

AWS * API Reference

*/ class CreateSpotDatafeedSubscriptionRequest : public EC2Request { public: AWS_EC2_API CreateSpotDatafeedSubscriptionRequest(); // 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 "CreateSpotDatafeedSubscription"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the Amazon S3 bucket in which to store the Spot Instance data * feed. For more information about bucket names, see Rules * for bucket naming in the Amazon S3 Developer Guide.

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

The name of the Amazon S3 bucket in which to store the Spot Instance data * feed. For more information about bucket names, see Rules * for bucket naming in the Amazon S3 Developer Guide.

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

The name of the Amazon S3 bucket in which to store the Spot Instance data * feed. For more information about bucket names, see Rules * for bucket naming in the Amazon S3 Developer Guide.

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

The name of the Amazon S3 bucket in which to store the Spot Instance data * feed. For more information about bucket names, see Rules * for bucket naming in the Amazon S3 Developer Guide.

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

The name of the Amazon S3 bucket in which to store the Spot Instance data * feed. For more information about bucket names, see Rules * for bucket naming in the Amazon S3 Developer Guide.

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

The name of the Amazon S3 bucket in which to store the Spot Instance data * feed. For more information about bucket names, see Rules * for bucket naming in the Amazon S3 Developer Guide.

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

The name of the Amazon S3 bucket in which to store the Spot Instance data * feed. For more information about bucket names, see Rules * for bucket naming in the Amazon S3 Developer Guide.

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

The name of the Amazon S3 bucket in which to store the Spot Instance data * feed. For more information about bucket names, see Rules * for bucket naming in the Amazon S3 Developer Guide.

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

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline CreateSpotDatafeedSubscriptionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The prefix for the data feed file names.

*/ inline const Aws::String& GetPrefix() const{ return m_prefix; } /** *

The prefix for the data feed file names.

*/ inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; } /** *

The prefix for the data feed file names.

*/ inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; } /** *

The prefix for the data feed file names.

*/ inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); } /** *

The prefix for the data feed file names.

*/ inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); } /** *

The prefix for the data feed file names.

*/ inline CreateSpotDatafeedSubscriptionRequest& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;} /** *

The prefix for the data feed file names.

*/ inline CreateSpotDatafeedSubscriptionRequest& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;} /** *

The prefix for the data feed file names.

*/ inline CreateSpotDatafeedSubscriptionRequest& WithPrefix(const char* value) { SetPrefix(value); return *this;} private: Aws::String m_bucket; bool m_bucketHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::String m_prefix; bool m_prefixHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws