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

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

Introduction

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

Prototype


public void setSubnetId(String subnetId) 

Source Link

Document

The ID 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.
 * /*from w  ww . j av a2  s.  c o  m*/
 * @return A new equivalent AWS object
 */
public Subnet toAwsObject() {
    Subnet subnet = new Subnet();
    subnet.setSubnetId(subnetId);
    subnet.setAvailabilityZone(availabilityZone);
    subnet.setAvailableIpAddressCount(availableIpAddressCount);
    return subnet;
}