Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010 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.

Returns:
The unique identifier for the reservation.
 
     public String getReservedDBInstanceId() {
         return ;
     }
    
    
The unique identifier for the reservation.

Parameters:
reservedDBInstanceId The unique identifier for the reservation.
 
     public void setReservedDBInstanceId(String reservedDBInstanceId) {
         this. = reservedDBInstanceId;
     }
    
    
The unique identifier for the reservation.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservedDBInstanceId The unique identifier for the reservation.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedDBInstance withReservedDBInstanceId(String reservedDBInstanceId) {
        this. = reservedDBInstanceId;
        return this;
    }
    
    
    
The offering identifier.

Returns:
The offering identifier.
        return ;
    }
    
    
The offering identifier.

Parameters:
reservedDBInstancesOfferingId The offering identifier.
    public void setReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId) {
        this. = reservedDBInstancesOfferingId;
    }
    
    
The offering identifier.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservedDBInstancesOfferingId The offering identifier.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedDBInstance withReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId) {
        this. = reservedDBInstancesOfferingId;
        return this;
    }
    
    
    
The DB instance class for the reserved DB Instance.

Returns:
The DB instance class for the reserved DB Instance.
    public String getDBInstanceClass() {
        return ;
    }
    
    
The DB instance class for the reserved DB Instance.

Parameters:
dBInstanceClass The DB instance class for the reserved DB Instance.
    public void setDBInstanceClass(String dBInstanceClass) {
        this. = dBInstanceClass;
    }
    
    
The DB instance class for the reserved DB Instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dBInstanceClass The DB instance class for the reserved DB Instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedDBInstance withDBInstanceClass(String dBInstanceClass) {
        this. = dBInstanceClass;
        return this;
    }
    
    
    
The time the reservation started.

Returns:
The time the reservation started.
    public java.util.Date getStartTime() {
        return ;
    }
    
    
The time the reservation started.

Parameters:
startTime The time the reservation started.
    public void setStartTime(java.util.Date startTime) {
        this. = startTime;
    }
    
    
The time the reservation started.

Returns a reference to this object so that method calls can be chained together.

Parameters:
startTime The time the reservation started.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedDBInstance withStartTime(java.util.Date startTime) {
        this. = startTime;
        return this;
    }
    
    
    
The duration of the reservation in seconds.

Returns:
The duration of the reservation in seconds.
    public Integer getDuration() {
        return ;
    }
    
    
The duration of the reservation in seconds.

Parameters:
duration The duration of the reservation in seconds.
    public void setDuration(Integer duration) {
        this. = duration;
    }
    
    
The duration of the reservation in seconds.

Returns a reference to this object so that method calls can be chained together.

Parameters:
duration The duration of the reservation in seconds.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedDBInstance withDuration(Integer duration) {
        this. = duration;
        return this;
    }
    
    
    
The fixed price charged for this reserved DB Instance.

Returns:
The fixed price charged for this reserved DB Instance.
    public Double getFixedPrice() {
        return ;
    }
    
    
The fixed price charged for this reserved DB Instance.

Parameters:
fixedPrice The fixed price charged for this reserved DB Instance.
    public void setFixedPrice(Double fixedPrice) {
        this. = fixedPrice;
    }
    
    
The fixed price charged for this reserved DB Instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
fixedPrice The fixed price charged for this reserved DB Instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedDBInstance withFixedPrice(Double fixedPrice) {
        this. = fixedPrice;
        return this;
    }
    
    
    
The hourly price charged for this reserved DB Instance.

Returns:
The hourly price charged for this reserved DB Instance.
    public Double getUsagePrice() {
        return ;
    }
    
    
The hourly price charged for this reserved DB Instance.

Parameters:
usagePrice The hourly price charged for this reserved DB Instance.
    public void setUsagePrice(Double usagePrice) {
        this. = usagePrice;
    }
    
    
The hourly price charged for this reserved DB Instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
usagePrice The hourly price charged for this reserved DB Instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedDBInstance withUsagePrice(Double usagePrice) {
        this. = usagePrice;
        return this;
    }
    
    
    
The number of reserved DB Instances.

Returns:
The number of reserved DB Instances.
    public Integer getDBInstanceCount() {
        return ;
    }
    
    
The number of reserved DB Instances.

Parameters:
dBInstanceCount The number of reserved DB Instances.
    public void setDBInstanceCount(Integer dBInstanceCount) {
        this. = dBInstanceCount;
    }
    
    
The number of reserved DB Instances.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dBInstanceCount The number of reserved DB Instances.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedDBInstance withDBInstanceCount(Integer dBInstanceCount) {
        this. = dBInstanceCount;
        return this;
    }
    
    
    
The description of the reserved DB Instance.

Returns:
The description of the reserved DB Instance.
    public String getProductDescription() {
        return ;
    }
    
    
The description of the reserved DB Instance.

Parameters:
productDescription The description of the reserved DB Instance.
    public void setProductDescription(String productDescription) {
        this. = productDescription;
    }
    
    
The description of the reserved DB Instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
productDescription The description of the reserved DB Instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedDBInstance withProductDescription(String productDescription) {
        this. = productDescription;
        return this;
    }
    
    
    
Indicates if the reservation applies to Multi-AZ deployments.

Returns:
Indicates if the reservation applies to Multi-AZ deployments.
    public Boolean isMultiAZ() {
        return ;
    }
    
    
Indicates if the reservation applies to Multi-AZ deployments.

Parameters:
multiAZ Indicates if the reservation applies to Multi-AZ deployments.
    public void setMultiAZ(Boolean multiAZ) {
        this. = multiAZ;
    }
    
    
Indicates if the reservation applies to Multi-AZ deployments.

Returns a reference to this object so that method calls can be chained together.

Parameters:
multiAZ Indicates if the reservation applies to Multi-AZ deployments.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedDBInstance withMultiAZ(Boolean multiAZ) {
        this. = multiAZ;
        return this;
    }
    
    
    
Indicates if the reservation applies to Multi-AZ deployments.

Returns:
Indicates if the reservation applies to Multi-AZ deployments.
    public Boolean getMultiAZ() {
        return ;
    }
    
    
The state of the reserved DB Instance.

Returns:
The state of the reserved DB Instance.
    public String getState() {
        return ;
    }
    
    
The state of the reserved DB Instance.

Parameters:
state The state of the reserved DB Instance.
    public void setState(String state) {
        this. = state;
    }
    
    
The state of the reserved DB Instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
state The state of the reserved DB Instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedDBInstance withState(String state) {
        this. = state;
        return this;
    }
    
    
    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        sb.append("ReservedDBInstanceId: " +  + ", ");
        sb.append("ReservedDBInstancesOfferingId: " +  + ", ");
        sb.append("DBInstanceClass: " +  + ", ");
        sb.append("StartTime: " +  + ", ");
        sb.append("Duration: " +  + ", ");
        sb.append("FixedPrice: " +  + ", ");
        sb.append("UsagePrice: " +  + ", ");
        sb.append("DBInstanceCount: " +  + ", ");
        sb.append("ProductDescription: " +  + ", ");
        sb.append("MultiAZ: " +  + ", ");
        sb.append("State: " +  + ", ");
        sb.append("}");
        return sb.toString();
    }
    
}
    
New to GrepCode? Check out our FAQ X