/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class EnableFastSnapshotRestoresRequest : public EC2Request { public: AWS_EC2_API EnableFastSnapshotRestoresRequest(); // 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 "EnableFastSnapshotRestores"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

One or more Availability Zones. For example, us-east-2a.

*/ inline const Aws::Vector& GetAvailabilityZones() const{ return m_availabilityZones; } /** *

One or more Availability Zones. For example, us-east-2a.

*/ inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; } /** *

One or more Availability Zones. For example, us-east-2a.

*/ inline void SetAvailabilityZones(const Aws::Vector& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; } /** *

One or more Availability Zones. For example, us-east-2a.

*/ inline void SetAvailabilityZones(Aws::Vector&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); } /** *

One or more Availability Zones. For example, us-east-2a.

*/ inline EnableFastSnapshotRestoresRequest& WithAvailabilityZones(const Aws::Vector& value) { SetAvailabilityZones(value); return *this;} /** *

One or more Availability Zones. For example, us-east-2a.

*/ inline EnableFastSnapshotRestoresRequest& WithAvailabilityZones(Aws::Vector&& value) { SetAvailabilityZones(std::move(value)); return *this;} /** *

One or more Availability Zones. For example, us-east-2a.

*/ inline EnableFastSnapshotRestoresRequest& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *

One or more Availability Zones. For example, us-east-2a.

*/ inline EnableFastSnapshotRestoresRequest& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; } /** *

One or more Availability Zones. For example, us-east-2a.

*/ inline EnableFastSnapshotRestoresRequest& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *

The IDs of one or more snapshots. For example, * snap-1234567890abcdef0. You can specify a snapshot that was shared * with you from another Amazon Web Services account.

*/ inline const Aws::Vector& GetSourceSnapshotIds() const{ return m_sourceSnapshotIds; } /** *

The IDs of one or more snapshots. For example, * snap-1234567890abcdef0. You can specify a snapshot that was shared * with you from another Amazon Web Services account.

*/ inline bool SourceSnapshotIdsHasBeenSet() const { return m_sourceSnapshotIdsHasBeenSet; } /** *

The IDs of one or more snapshots. For example, * snap-1234567890abcdef0. You can specify a snapshot that was shared * with you from another Amazon Web Services account.

*/ inline void SetSourceSnapshotIds(const Aws::Vector& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds = value; } /** *

The IDs of one or more snapshots. For example, * snap-1234567890abcdef0. You can specify a snapshot that was shared * with you from another Amazon Web Services account.

*/ inline void SetSourceSnapshotIds(Aws::Vector&& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds = std::move(value); } /** *

The IDs of one or more snapshots. For example, * snap-1234567890abcdef0. You can specify a snapshot that was shared * with you from another Amazon Web Services account.

*/ inline EnableFastSnapshotRestoresRequest& WithSourceSnapshotIds(const Aws::Vector& value) { SetSourceSnapshotIds(value); return *this;} /** *

The IDs of one or more snapshots. For example, * snap-1234567890abcdef0. You can specify a snapshot that was shared * with you from another Amazon Web Services account.

*/ inline EnableFastSnapshotRestoresRequest& WithSourceSnapshotIds(Aws::Vector&& value) { SetSourceSnapshotIds(std::move(value)); return *this;} /** *

The IDs of one or more snapshots. For example, * snap-1234567890abcdef0. You can specify a snapshot that was shared * with you from another Amazon Web Services account.

*/ inline EnableFastSnapshotRestoresRequest& AddSourceSnapshotIds(const Aws::String& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds.push_back(value); return *this; } /** *

The IDs of one or more snapshots. For example, * snap-1234567890abcdef0. You can specify a snapshot that was shared * with you from another Amazon Web Services account.

*/ inline EnableFastSnapshotRestoresRequest& AddSourceSnapshotIds(Aws::String&& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds.push_back(std::move(value)); return *this; } /** *

The IDs of one or more snapshots. For example, * snap-1234567890abcdef0. You can specify a snapshot that was shared * with you from another Amazon Web Services account.

*/ inline EnableFastSnapshotRestoresRequest& AddSourceSnapshotIds(const char* value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds.push_back(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 EnableFastSnapshotRestoresRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::Vector m_availabilityZones; bool m_availabilityZonesHasBeenSet = false; Aws::Vector m_sourceSnapshotIds; bool m_sourceSnapshotIdsHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws