/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.rds.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ApplyPendingMaintenanceActionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

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

*/ private String resourceIdentifier; /** *

* The pending maintenance action to apply to this resource. *

*

* Valid values: system-update, db-upgrade, hardware-maintenance, * ca-certificate-rotation *

*/ private String applyAction; /** *

* 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: *

* */ private String optInType; /** *

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

* * @param resourceIdentifier * The RDS Amazon Resource Name (ARN) of the resource that the pending maintenance action applies to. For * information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN). */ public void setResourceIdentifier(String resourceIdentifier) { this.resourceIdentifier = resourceIdentifier; } /** *

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

* * @return The RDS Amazon Resource Name (ARN) of the resource that the pending maintenance action applies to. For * information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN). */ public String getResourceIdentifier() { return this.resourceIdentifier; } /** *

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

* * @param resourceIdentifier * The RDS Amazon Resource Name (ARN) of the resource that the pending maintenance action applies to. For * information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN). * @return Returns a reference to this object so that method calls can be chained together. */ public ApplyPendingMaintenanceActionRequest withResourceIdentifier(String resourceIdentifier) { setResourceIdentifier(resourceIdentifier); return this; } /** *

* The pending maintenance action to apply to this resource. *

*

* Valid values: system-update, db-upgrade, hardware-maintenance, * ca-certificate-rotation *

* * @param applyAction * The pending maintenance action to apply to this resource.

*

* Valid values: system-update, db-upgrade, hardware-maintenance, * ca-certificate-rotation */ public void setApplyAction(String applyAction) { this.applyAction = applyAction; } /** *

* The pending maintenance action to apply to this resource. *

*

* Valid values: system-update, db-upgrade, hardware-maintenance, * ca-certificate-rotation *

* * @return The pending maintenance action to apply to this resource.

*

* Valid values: system-update, db-upgrade, hardware-maintenance, * ca-certificate-rotation */ public String getApplyAction() { return this.applyAction; } /** *

* The pending maintenance action to apply to this resource. *

*

* Valid values: system-update, db-upgrade, hardware-maintenance, * ca-certificate-rotation *

* * @param applyAction * The pending maintenance action to apply to this resource.

*

* Valid values: system-update, db-upgrade, hardware-maintenance, * ca-certificate-rotation * @return Returns a reference to this object so that method calls can be chained together. */ public ApplyPendingMaintenanceActionRequest withApplyAction(String applyAction) { setApplyAction(applyAction); 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: *

* * * @param 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: *

*