Example usage for com.amazonaws.services.ec2.model Subnet setAvailabilityZone

List of usage examples for com.amazonaws.services.ec2.model Subnet setAvailabilityZone

Introduction

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

Prototype


public void setAvailabilityZone(String availabilityZone) 

Source Link

Document

The Availability Zone of the subnet.

Usage

From source file:org.finra.dm.dao.impl.MockSubnet.java

License:Apache License

/**
 * Converts this object into an AWS equivalent object.
 * /*w w  w.j av  a 2 s  .c om*/
 * @return A new equivalent AWS object
 */
public Subnet toAwsObject() {
    Subnet subnet = new Subnet();
    subnet.setSubnetId(subnetId);
    subnet.setAvailabilityZone(availabilityZone);
    subnet.setAvailableIpAddressCount(availableIpAddressCount);
    return subnet;
}