/** * 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 Neptune { namespace Model { /** */ class ApplyPendingMaintenanceActionRequest : public NeptuneRequest { public: AWS_NEPTUNE_API ApplyPendingMaintenanceActionRequest(); // 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 "ApplyPendingMaintenanceAction"; } AWS_NEPTUNE_API Aws::String SerializePayload() const override; protected: AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The Amazon Resource Name (ARN) of the resource that the pending maintenance * action applies to. For information about creating an ARN, see * Constructing an Amazon Resource Name (ARN).

*/ inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; } /** *

The Amazon Resource Name (ARN) of the resource that the pending maintenance * action applies to. For information about creating an ARN, see * Constructing an Amazon Resource Name (ARN).

*/ inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the resource that the pending maintenance * action applies to. For information about creating an ARN, see * Constructing an Amazon Resource Name (ARN).

*/ inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; } /** *

The Amazon Resource Name (ARN) of the resource that the pending maintenance * action applies to. For information about creating an ARN, see * Constructing an Amazon Resource Name (ARN).

*/ inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); } /** *

The Amazon Resource Name (ARN) of the resource that the pending maintenance * action applies to. For information about creating an ARN, see * Constructing an Amazon Resource Name (ARN).

*/ inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); } /** *

The Amazon Resource Name (ARN) of the resource that the pending maintenance * action applies to. For information about creating an ARN, see * Constructing an Amazon Resource Name (ARN).

*/ inline ApplyPendingMaintenanceActionRequest& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;} /** *

The Amazon Resource Name (ARN) of the resource that the pending maintenance * action applies to. For information about creating an ARN, see * Constructing an Amazon Resource Name (ARN).

*/ inline ApplyPendingMaintenanceActionRequest& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the resource that the pending maintenance * action applies to. For information about creating an ARN, see * Constructing an Amazon Resource Name (ARN).

*/ inline ApplyPendingMaintenanceActionRequest& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;} /** *

The pending maintenance action to apply to this resource.

Valid * values: system-update, db-upgrade

*/ inline const Aws::String& GetApplyAction() const{ return m_applyAction; } /** *

The pending maintenance action to apply to this resource.

Valid * values: system-update, db-upgrade

*/ inline bool ApplyActionHasBeenSet() const { return m_applyActionHasBeenSet; } /** *

The pending maintenance action to apply to this resource.

Valid * values: system-update, db-upgrade

*/ inline void SetApplyAction(const Aws::String& value) { m_applyActionHasBeenSet = true; m_applyAction = value; } /** *

The pending maintenance action to apply to this resource.

Valid * values: system-update, db-upgrade

*/ inline void SetApplyAction(Aws::String&& value) { m_applyActionHasBeenSet = true; m_applyAction = std::move(value); } /** *

The pending maintenance action to apply to this resource.

Valid * values: system-update, db-upgrade

*/ inline void SetApplyAction(const char* value) { m_applyActionHasBeenSet = true; m_applyAction.assign(value); } /** *

The pending maintenance action to apply to this resource.

Valid * values: system-update, db-upgrade

*/ inline ApplyPendingMaintenanceActionRequest& WithApplyAction(const Aws::String& value) { SetApplyAction(value); return *this;} /** *

The pending maintenance action to apply to this resource.

Valid * values: system-update, db-upgrade

*/ inline ApplyPendingMaintenanceActionRequest& WithApplyAction(Aws::String&& value) { SetApplyAction(std::move(value)); return *this;} /** *

The pending maintenance action to apply to this resource.

Valid * values: system-update, db-upgrade

*/ inline ApplyPendingMaintenanceActionRequest& WithApplyAction(const char* value) { SetApplyAction(value); return *this;} /** *

A value that specifies the type of opt-in request, or undoes an opt-in * request. An opt-in request of type immediate can't be undone.

*

Valid values:

  • immediate - Apply the * maintenance action immediately.

  • next-maintenance * - Apply the maintenance action during the next maintenance window for the * resource.

  • undo-opt-in - Cancel any existing * next-maintenance opt-in requests.

*/ inline const Aws::String& GetOptInType() const{ return m_optInType; } /** *

A value that specifies the type of opt-in request, or undoes an opt-in * request. An opt-in request of type immediate can't be undone.

*

Valid values:

  • immediate - Apply the * maintenance action immediately.

  • next-maintenance * - Apply the maintenance action during the next maintenance window for the * resource.

  • undo-opt-in - Cancel any existing * next-maintenance opt-in requests.

*/ inline bool OptInTypeHasBeenSet() const { return m_optInTypeHasBeenSet; } /** *

A value that specifies the type of opt-in request, or undoes an opt-in * request. An opt-in request of type immediate can't be undone.

*

Valid values:

  • immediate - Apply the * maintenance action immediately.

  • next-maintenance * - Apply the maintenance action during the next maintenance window for the * resource.

  • undo-opt-in - Cancel any existing * next-maintenance opt-in requests.

*/ inline void SetOptInType(const Aws::String& value) { m_optInTypeHasBeenSet = true; m_optInType = value; } /** *

A value that specifies the type of opt-in request, or undoes an opt-in * request. An opt-in request of type immediate can't be undone.

*

Valid values:

  • immediate - Apply the * maintenance action immediately.

  • next-maintenance * - Apply the maintenance action during the next maintenance window for the * resource.

  • undo-opt-in - Cancel any existing * next-maintenance opt-in requests.

*/ inline void SetOptInType(Aws::String&& value) { m_optInTypeHasBeenSet = true; m_optInType = std::move(value); } /** *

A value that specifies the type of opt-in request, or undoes an opt-in * request. An opt-in request of type immediate can't be undone.

*

Valid values:

  • immediate - Apply the * maintenance action immediately.

  • next-maintenance * - Apply the maintenance action during the next maintenance window for the * resource.

  • undo-opt-in - Cancel any existing * next-maintenance opt-in requests.

*/ inline void SetOptInType(const char* value) { m_optInTypeHasBeenSet = true; m_optInType.assign(value); } /** *

A value that specifies the type of opt-in request, or undoes an opt-in * request. An opt-in request of type immediate can't be undone.

*

Valid values:

  • immediate - Apply the * maintenance action immediately.

  • next-maintenance * - Apply the maintenance action during the next maintenance window for the * resource.

  • undo-opt-in - Cancel any existing * next-maintenance opt-in requests.

*/ inline ApplyPendingMaintenanceActionRequest& WithOptInType(const Aws::String& value) { SetOptInType(value); return *this;} /** *

A value that specifies the type of opt-in request, or undoes an opt-in * request. An opt-in request of type immediate can't be undone.

*

Valid values:

  • immediate - Apply the * maintenance action immediately.

  • next-maintenance * - Apply the maintenance action during the next maintenance window for the * resource.

  • undo-opt-in - Cancel any existing * next-maintenance opt-in requests.

*/ inline ApplyPendingMaintenanceActionRequest& WithOptInType(Aws::String&& value) { SetOptInType(std::move(value)); return *this;} /** *

A value that specifies the type of opt-in request, or undoes an opt-in * request. An opt-in request of type immediate can't be undone.

*

Valid values:

  • immediate - Apply the * maintenance action immediately.

  • next-maintenance * - Apply the maintenance action during the next maintenance window for the * resource.

  • undo-opt-in - Cancel any existing * next-maintenance opt-in requests.

*/ inline ApplyPendingMaintenanceActionRequest& WithOptInType(const char* value) { SetOptInType(value); return *this;} private: Aws::String m_resourceIdentifier; bool m_resourceIdentifierHasBeenSet = false; Aws::String m_applyAction; bool m_applyActionHasBeenSet = false; Aws::String m_optInType; bool m_optInTypeHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws