Example usage for com.amazonaws.services.rds.model DBSnapshot setAvailabilityZone

List of usage examples for com.amazonaws.services.rds.model DBSnapshot setAvailabilityZone

Introduction

In this page you can find the example usage for com.amazonaws.services.rds.model DBSnapshot setAvailabilityZone.

Prototype


public void setAvailabilityZone(String availabilityZone) 

Source Link

Document

Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.

Usage

From source file:com.msi.tough.utils.rds.SnapshotEntity.java

public static DBSnapshot toDBSnapshot(final RdsSnapshot b) {
    final DBSnapshot snpRec = new DBSnapshot();
    snpRec.setDBSnapshotIdentifier(b.getDbsnapshotId());
    snpRec.setDBInstanceIdentifier(b.getDbinstanceId());
    snpRec.setAllocatedStorage(b.getAllocatedStorage());
    snpRec.setAvailabilityZone(b.getAvailabilityZone());
    snpRec.setEngine(b.getEngine());//from   ww w  .  j a  v a2  s  . com
    snpRec.setEngineVersion(b.getEngineVersion());
    snpRec.setMasterUsername(b.getMasterUsername());
    snpRec.setPort(b.getPort());
    snpRec.setInstanceCreateTime(b.getInstanceCreatedTime());
    snpRec.setSnapshotCreateTime(b.getSnapshotCreateTime());
    snpRec.setStatus(b.getStatus());
    snpRec.setLicenseModel(b.getLicenseModel());
    // TODO add the line below once AWS Java SDK is ready
    // snpRec.setSnapshotType(b.getSnapshotType());
    return snpRec;
}