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;
Container for the parameters to the RestoreDBInstanceToPointInTime operation.

This API creates a new RDS instance from a point-in-time system snapshot. The target database is created from the source database restore point with the same configuration as the original source database, except that the new RDS instance is created with the default security group.

 
The identifier of the source DB Instance from which to restore.
 
     private String sourceDBInstanceIdentifier;

    
The name of the new database instance to be created.
 
     private String targetDBInstanceIdentifier;

    
The date and time from to restore from.
 
     private java.util.Date restoreTime;

    
Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.
 
     private Boolean useLatestRestorableTime;

    
The compute and memory capacity of the Amazon RDS DB instance.
 
     private String dBInstanceClass;

    
The port number on which the database accepts connections.
 
     private Integer port;

    
The EC2 Availability Zone that the database instance will be created in.
 
     private String availabilityZone;

    
Specifies if the DB Instance is a Multi-AZ deployment.
 
     private Boolean multiAZ;

    
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.
 
     private Boolean autoMinorVersionUpgrade;

    
Default constructor for a new RestoreDBInstanceToPointInTimeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.
 
     public RestoreDBInstanceToPointInTimeRequest() {}
    
    
Constructs a new RestoreDBInstanceToPointInTimeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
sourceDBInstanceIdentifier The identifier of the source DB Instance from which to restore.
targetDBInstanceIdentifier The name of the new database instance to be created.
 
     public RestoreDBInstanceToPointInTimeRequest(String sourceDBInstanceIdentifierString targetDBInstanceIdentifier) {
         this. = sourceDBInstanceIdentifier;
         this. = targetDBInstanceIdentifier;
     }
    
    
The identifier of the source DB Instance from which to restore.

Returns:
The identifier of the source DB Instance from which to restore.
        return ;
    }
    
    
The identifier of the source DB Instance from which to restore.

Parameters:
sourceDBInstanceIdentifier The identifier of the source DB Instance from which to restore.
    public void setSourceDBInstanceIdentifier(String sourceDBInstanceIdentifier) {
        this. = sourceDBInstanceIdentifier;
    }
    
    
The identifier of the source DB Instance from which to restore.

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

Parameters:
sourceDBInstanceIdentifier The identifier of the source DB Instance from which to restore.
Returns:
A reference to this updated object so that method calls can be chained together.
    public RestoreDBInstanceToPointInTimeRequest withSourceDBInstanceIdentifier(String sourceDBInstanceIdentifier) {
        this. = sourceDBInstanceIdentifier;
        return this;
    }
    
    
    
The name of the new database instance to be created.

Returns:
The name of the new database instance to be created.
        return ;
    }
    
    
The name of the new database instance to be created.

Parameters:
targetDBInstanceIdentifier The name of the new database instance to be created.
    public void setTargetDBInstanceIdentifier(String targetDBInstanceIdentifier) {
        this. = targetDBInstanceIdentifier;
    }
    
    
The name of the new database instance to be created.

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

Parameters:
targetDBInstanceIdentifier The name of the new database instance to be created.
Returns:
A reference to this updated object so that method calls can be chained together.
    public RestoreDBInstanceToPointInTimeRequest withTargetDBInstanceIdentifier(String targetDBInstanceIdentifier) {
        this. = targetDBInstanceIdentifier;
        return this;
    }
    
    
    
The date and time from to restore from.

Returns:
The date and time from to restore from.
    public java.util.Date getRestoreTime() {
        return ;
    }
    
    
The date and time from to restore from.

Parameters:
restoreTime The date and time from to restore from.
    public void setRestoreTime(java.util.Date restoreTime) {
        this. = restoreTime;
    }
    
    
The date and time from to restore from.

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

Parameters:
restoreTime The date and time from to restore from.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = restoreTime;
        return this;
    }
    
    
    
Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.

Returns:
Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.
        return ;
    }
    
    
Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.

Parameters:
useLatestRestorableTime Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.
    public void setUseLatestRestorableTime(Boolean useLatestRestorableTime) {
        this. = useLatestRestorableTime;
    }
    
    
Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.

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

Parameters:
useLatestRestorableTime Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = useLatestRestorableTime;
        return this;
    }
    
    
    
Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.

Returns:
Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.
        return ;
    }
    
    
The compute and memory capacity of the Amazon RDS DB instance.

Returns:
The compute and memory capacity of the Amazon RDS DB instance.
    public String getDBInstanceClass() {
        return ;
    }
    
    
The compute and memory capacity of the Amazon RDS DB instance.

Parameters:
dBInstanceClass The compute and memory capacity of the Amazon RDS DB instance.
    public void setDBInstanceClass(String dBInstanceClass) {
        this. = dBInstanceClass;
    }
    
    
The compute and memory capacity of the Amazon RDS DB instance.

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

Parameters:
dBInstanceClass The compute and memory capacity of the Amazon RDS DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = dBInstanceClass;
        return this;
    }
    
    
    
The port number on which the database accepts connections.

Returns:
The port number on which the database accepts connections.
    public Integer getPort() {
        return ;
    }
    
    
The port number on which the database accepts connections.

Parameters:
port The port number on which the database accepts connections.
    public void setPort(Integer port) {
        this. = port;
    }
    
    
The port number on which the database accepts connections.

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

Parameters:
port The port number on which the database accepts connections.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = port;
        return this;
    }
    
    
    
The EC2 Availability Zone that the database instance will be created in.

Returns:
The EC2 Availability Zone that the database instance will be created in.
    public String getAvailabilityZone() {
        return ;
    }
    
    
The EC2 Availability Zone that the database instance will be created in.

Parameters:
availabilityZone The EC2 Availability Zone that the database instance will be created in.
    public void setAvailabilityZone(String availabilityZone) {
        this. = availabilityZone;
    }
    
    
The EC2 Availability Zone that the database instance will be created in.

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

Parameters:
availabilityZone The EC2 Availability Zone that the database instance will be created in.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = availabilityZone;
        return this;
    }
    
    
    
Specifies if the DB Instance is a Multi-AZ deployment.

Returns:
Specifies if the DB Instance is a Multi-AZ deployment.
    public Boolean isMultiAZ() {
        return ;
    }
    
    
Specifies if the DB Instance is a Multi-AZ deployment.

Parameters:
multiAZ Specifies if the DB Instance is a Multi-AZ deployment.
    public void setMultiAZ(Boolean multiAZ) {
        this. = multiAZ;
    }
    
    
Specifies if the DB Instance is a Multi-AZ deployment.

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

Parameters:
multiAZ Specifies if the DB Instance is a Multi-AZ deployment.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = multiAZ;
        return this;
    }
    
    
    
Specifies if the DB Instance is a Multi-AZ deployment.

Returns:
Specifies if the DB Instance is a Multi-AZ deployment.
    public Boolean getMultiAZ() {
        return ;
    }
    
    
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

Returns:
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.
        return ;
    }
    
    
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

Parameters:
autoMinorVersionUpgrade Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.
    public void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
        this. = autoMinorVersionUpgrade;
    }
    
    
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

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

Parameters:
autoMinorVersionUpgrade Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = autoMinorVersionUpgrade;
        return this;
    }
    
    
    
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

Returns:
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.
        return ;
    }
    
    
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("SourceDBInstanceIdentifier: " +  + ", ");
        sb.append("TargetDBInstanceIdentifier: " +  + ", ");
        sb.append("RestoreTime: " +  + ", ");
        sb.append("UseLatestRestorableTime: " +  + ", ");
        sb.append("DBInstanceClass: " +  + ", ");
        sb.append("Port: " +  + ", ");
        sb.append("AvailabilityZone: " +  + ", ");
        sb.append("MultiAZ: " +  + ", ");
        sb.append("AutoMinorVersionUpgrade: " +  + ", ");
        sb.append("}");
        return sb.toString();
    }
    
}
    
New to GrepCode? Check out our FAQ X