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

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 ResetFpgaImageAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The ID of the AFI.

*/ inline const Aws::String& GetFpgaImageId() const{ return m_fpgaImageId; } /** *

The ID of the AFI.

*/ inline bool FpgaImageIdHasBeenSet() const { return m_fpgaImageIdHasBeenSet; } /** *

The ID of the AFI.

*/ inline void SetFpgaImageId(const Aws::String& value) { m_fpgaImageIdHasBeenSet = true; m_fpgaImageId = value; } /** *

The ID of the AFI.

*/ inline void SetFpgaImageId(Aws::String&& value) { m_fpgaImageIdHasBeenSet = true; m_fpgaImageId = std::move(value); } /** *

The ID of the AFI.

*/ inline void SetFpgaImageId(const char* value) { m_fpgaImageIdHasBeenSet = true; m_fpgaImageId.assign(value); } /** *

The ID of the AFI.

*/ inline ResetFpgaImageAttributeRequest& WithFpgaImageId(const Aws::String& value) { SetFpgaImageId(value); return *this;} /** *

The ID of the AFI.

*/ inline ResetFpgaImageAttributeRequest& WithFpgaImageId(Aws::String&& value) { SetFpgaImageId(std::move(value)); return *this;} /** *

The ID of the AFI.

*/ inline ResetFpgaImageAttributeRequest& WithFpgaImageId(const char* value) { SetFpgaImageId(value); return *this;} /** *

The attribute.

*/ inline const ResetFpgaImageAttributeName& GetAttribute() const{ return m_attribute; } /** *

The attribute.

*/ inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; } /** *

The attribute.

*/ inline void SetAttribute(const ResetFpgaImageAttributeName& value) { m_attributeHasBeenSet = true; m_attribute = value; } /** *

The attribute.

*/ inline void SetAttribute(ResetFpgaImageAttributeName&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); } /** *

The attribute.

*/ inline ResetFpgaImageAttributeRequest& WithAttribute(const ResetFpgaImageAttributeName& value) { SetAttribute(value); return *this;} /** *

The attribute.

*/ inline ResetFpgaImageAttributeRequest& WithAttribute(ResetFpgaImageAttributeName&& value) { SetAttribute(std::move(value)); return *this;} private: bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::String m_fpgaImageId; bool m_fpgaImageIdHasBeenSet = false; ResetFpgaImageAttributeName m_attribute; bool m_attributeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws