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

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

/*
 * Copyright 2010-2011 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;

/**
 * Reserved D B Instance
 */
public class ReservedDBInstance {

    /**
     * The unique identifier for the reservation.
     */
    private String reservedDBInstanceId;

    /**
     * The offering identifier.
     */
    private String reservedDBInstancesOfferingId;

    /**
     * The DB instance class for the reserved DB Instance.
     */
    private String dBInstanceClass;

    /**
     * The time the reservation started.
     */
    private java.util.Date startTime;

    /**
     * The duration of the reservation in seconds.
     */
    private Integer duration;

    /**
     * The fixed price charged for this reserved DB Instance.
     */
    private Double fixedPrice;

    /**
     * The hourly price charged for this reserved DB Instance.
     */
    private Double usagePrice;

    /**
     * The number of reserved DB Instances.
     */
    private Integer dBInstanceCount;

    /**
     * The description of the reserved DB Instance.
     */
    private String productDescription;

    /**
     * Indicates if the reservation applies to Multi-AZ deployments.
     */
    private Boolean multiAZ;

    /**
     * The state of the reserved DB Instance.
     */
    private String state;

    /**
     * The unique identifier for the reservation.
     *
     * @return The unique identifier for the reservation.
     */
    public String getReservedDBInstanceId() {
        return reservedDBInstanceId;
    }
    
    /**
     * The unique identifier for the reservation.
     *
     * @param reservedDBInstanceId The unique identifier for the reservation.
     */
    public void setReservedDBInstanceId(String reservedDBInstanceId) {
        this.reservedDBInstanceId = reservedDBInstanceId;
    }
    
    /**
     * The unique identifier for the reservation.
     * 

* Returns a reference to this object so that method calls can be chained together. * * @param reservedDBInstanceId The unique identifier for the reservation. * * @return A reference to this updated object so that method calls can be chained * together. */ public ReservedDBInstance withReservedDBInstanceId(String reservedDBInstanceId) { this.reservedDBInstanceId = reservedDBInstanceId; return this; } /** * The offering identifier. * * @return The offering identifier. */ public String getReservedDBInstancesOfferingId() { return reservedDBInstancesOfferingId; } /** * The offering identifier. * * @param reservedDBInstancesOfferingId The offering identifier. */ public void setReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId) { this.reservedDBInstancesOfferingId = reservedDBInstancesOfferingId; } /** * The offering identifier. *

* Returns a reference to this object so that method calls can be chained together. * * @param reservedDBInstancesOfferingId The offering identifier. * * @return A reference to this updated object so that method calls can be chained * together. */ public ReservedDBInstance withReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId) { this.reservedDBInstancesOfferingId = reservedDBInstancesOfferingId; return this; } /** * The DB instance class for the reserved DB Instance. * * @return The DB instance class for the reserved DB Instance. */ public String getDBInstanceClass() { return dBInstanceClass; } /** * The DB instance class for the reserved DB Instance. * * @param dBInstanceClass The DB instance class for the reserved DB Instance. */ public void setDBInstanceClass(String dBInstanceClass) { this.dBInstanceClass = dBInstanceClass; } /** * The DB instance class for the reserved DB Instance. *

* Returns a reference to this object so that method calls can be chained together. * * @param dBInstanceClass The DB instance class for the reserved DB Instance. * * @return A reference to this updated object so that method calls can be chained * together. */ public ReservedDBInstance withDBInstanceClass(String dBInstanceClass) { this.dBInstanceClass = dBInstanceClass; return this; } /** * The time the reservation started. * * @return The time the reservation started. */ public java.util.Date getStartTime() { return startTime; } /** * The time the reservation started. * * @param startTime The time the reservation started. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** * The time the reservation started. *

* Returns a reference to this object so that method calls can be chained together. * * @param startTime The time the reservation started. * * @return A reference to this updated object so that method calls can be chained * together. */ public ReservedDBInstance withStartTime(java.util.Date startTime) { this.startTime = startTime; return this; } /** * The duration of the reservation in seconds. * * @return The duration of the reservation in seconds. */ public Integer getDuration() { return duration; } /** * The duration of the reservation in seconds. * * @param duration The duration of the reservation in seconds. */ public void setDuration(Integer duration) { this.duration = duration; } /** * The duration of the reservation in seconds. *

* Returns a reference to this object so that method calls can be chained together. * * @param duration The duration of the reservation in seconds. * * @return A reference to this updated object so that method calls can be chained * together. */ public ReservedDBInstance withDuration(Integer duration) { this.duration = duration; return this; } /** * The fixed price charged for this reserved DB Instance. * * @return The fixed price charged for this reserved DB Instance. */ public Double getFixedPrice() { return fixedPrice; } /** * The fixed price charged for this reserved DB Instance. * * @param fixedPrice The fixed price charged for this reserved DB Instance. */ public void setFixedPrice(Double fixedPrice) { this.fixedPrice = fixedPrice; } /** * The fixed price charged for this reserved DB Instance. *

* Returns a reference to this object so that method calls can be chained together. * * @param fixedPrice The fixed price charged for this reserved DB Instance. * * @return A reference to this updated object so that method calls can be chained * together. */ public ReservedDBInstance withFixedPrice(Double fixedPrice) { this.fixedPrice = fixedPrice; return this; } /** * The hourly price charged for this reserved DB Instance. * * @return The hourly price charged for this reserved DB Instance. */ public Double getUsagePrice() { return usagePrice; } /** * The hourly price charged for this reserved DB Instance. * * @param usagePrice The hourly price charged for this reserved DB Instance. */ public void setUsagePrice(Double usagePrice) { this.usagePrice = usagePrice; } /** * The hourly price charged for this reserved DB Instance. *

* Returns a reference to this object so that method calls can be chained together. * * @param usagePrice The hourly price charged for this reserved DB Instance. * * @return A reference to this updated object so that method calls can be chained * together. */ public ReservedDBInstance withUsagePrice(Double usagePrice) { this.usagePrice = usagePrice; return this; } /** * The number of reserved DB Instances. * * @return The number of reserved DB Instances. */ public Integer getDBInstanceCount() { return dBInstanceCount; } /** * The number of reserved DB Instances. * * @param dBInstanceCount The number of reserved DB Instances. */ public void setDBInstanceCount(Integer dBInstanceCount) { this.dBInstanceCount = dBInstanceCount; } /** * The number of reserved DB Instances. *

* Returns a reference to this object so that method calls can be chained together. * * @param dBInstanceCount The number of reserved DB Instances. * * @return A reference to this updated object so that method calls can be chained * together. */ public ReservedDBInstance withDBInstanceCount(Integer dBInstanceCount) { this.dBInstanceCount = dBInstanceCount; return this; } /** * The description of the reserved DB Instance. * * @return The description of the reserved DB Instance. */ public String getProductDescription() { return productDescription; } /** * The description of the reserved DB Instance. * * @param productDescription The description of the reserved DB Instance. */ public void setProductDescription(String productDescription) { this.productDescription = productDescription; } /** * The description of the reserved DB Instance. *

* Returns a reference to this object so that method calls can be chained together. * * @param productDescription The description of the reserved DB Instance. * * @return A reference to this updated object so that method calls can be chained * together. */ public ReservedDBInstance withProductDescription(String productDescription) { this.productDescription = productDescription; return this; } /** * Indicates if the reservation applies to Multi-AZ deployments. * * @return Indicates if the reservation applies to Multi-AZ deployments. */ public Boolean isMultiAZ() { return multiAZ; } /** * Indicates if the reservation applies to Multi-AZ deployments. * * @param multiAZ Indicates if the reservation applies to Multi-AZ deployments. */ public void setMultiAZ(Boolean multiAZ) { this.multiAZ = multiAZ; } /** * Indicates if the reservation applies to Multi-AZ deployments. *

* Returns a reference to this object so that method calls can be chained together. * * @param multiAZ Indicates if the reservation applies to Multi-AZ deployments. * * @return A reference to this updated object so that method calls can be chained * together. */ public ReservedDBInstance withMultiAZ(Boolean multiAZ) { this.multiAZ = multiAZ; return this; } /** * Indicates if the reservation applies to Multi-AZ deployments. * * @return Indicates if the reservation applies to Multi-AZ deployments. */ public Boolean getMultiAZ() { return multiAZ; } /** * The state of the reserved DB Instance. * * @return The state of the reserved DB Instance. */ public String getState() { return state; } /** * The state of the reserved DB Instance. * * @param state The state of the reserved DB Instance. */ public void setState(String state) { this.state = state; } /** * The state of the reserved DB Instance. *

* Returns a reference to this object so that method calls can be chained together. * * @param state The state of the reserved DB Instance. * * @return A reference to this updated object so that method calls can be chained * together. */ public ReservedDBInstance withState(String state) { this.state = state; 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("{"); sb.append("ReservedDBInstanceId: " + reservedDBInstanceId + ", "); sb.append("ReservedDBInstancesOfferingId: " + reservedDBInstancesOfferingId + ", "); sb.append("DBInstanceClass: " + dBInstanceClass + ", "); sb.append("StartTime: " + startTime + ", "); sb.append("Duration: " + duration + ", "); sb.append("FixedPrice: " + fixedPrice + ", "); sb.append("UsagePrice: " + usagePrice + ", "); sb.append("DBInstanceCount: " + dBInstanceCount + ", "); sb.append("ProductDescription: " + productDescription + ", "); sb.append("MultiAZ: " + multiAZ + ", "); sb.append("State: " + state + ", "); sb.append("}"); return sb.toString(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy