All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.rds.model.ApplyPendingMaintenanceActionRequest Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-2016 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 com.amazonaws.AmazonWebServiceRequest;

/**
 * 

*/ public class ApplyPendingMaintenanceActionRequest extends 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 *

*/ 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 cannot 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. *

    *
  • *
*/ 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 *

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

*

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

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

*

* Valid values: system-update, db-upgrade *

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

*

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

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

*

* Valid values: system-update, db-upgrade *

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

*

* Valid values: system-update, db-upgrade * @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 cannot 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. *

    *
  • *
* * @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 * cannot 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. *

    *
  • */ public void setOptInType(String optInType) { this.optInType = optInType; } /** *

    * A value that specifies the type of opt-in request, or undoes an opt-in * request. An opt-in request of type immediate cannot 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. *

      *
    • *
    * * @return A value that specifies the type of opt-in request, or undoes an * opt-in request. An opt-in request of type immediate * cannot 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. *

      *
    • */ public String getOptInType() { return this.optInType; } /** *

      * A value that specifies the type of opt-in request, or undoes an opt-in * request. An opt-in request of type immediate cannot 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. *

        *
      • *
      * * @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 * cannot 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. *

        *
      • * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplyPendingMaintenanceActionRequest withOptInType(String optInType) { setOptInType(optInType); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getResourceIdentifier() != null) sb.append("ResourceIdentifier: " + getResourceIdentifier() + ","); if (getApplyAction() != null) sb.append("ApplyAction: " + getApplyAction() + ","); if (getOptInType() != null) sb.append("OptInType: " + getOptInType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ApplyPendingMaintenanceActionRequest == false) return false; ApplyPendingMaintenanceActionRequest other = (ApplyPendingMaintenanceActionRequest) obj; if (other.getResourceIdentifier() == null ^ this.getResourceIdentifier() == null) return false; if (other.getResourceIdentifier() != null && other.getResourceIdentifier().equals( this.getResourceIdentifier()) == false) return false; if (other.getApplyAction() == null ^ this.getApplyAction() == null) return false; if (other.getApplyAction() != null && other.getApplyAction().equals(this.getApplyAction()) == false) return false; if (other.getOptInType() == null ^ this.getOptInType() == null) return false; if (other.getOptInType() != null && other.getOptInType().equals(this.getOptInType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getResourceIdentifier() == null) ? 0 : getResourceIdentifier().hashCode()); hashCode = prime * hashCode + ((getApplyAction() == null) ? 0 : getApplyAction().hashCode()); hashCode = prime * hashCode + ((getOptInType() == null) ? 0 : getOptInType().hashCode()); return hashCode; } @Override public ApplyPendingMaintenanceActionRequest clone() { return (ApplyPendingMaintenanceActionRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy