Example usage for com.amazonaws.services.ec2.model Reservation setOwnerId

List of usage examples for com.amazonaws.services.ec2.model Reservation setOwnerId

Introduction

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

Prototype


public void setOwnerId(String ownerId) 

Source Link

Document

The ID of the AWS account that owns the reservation.

Usage

From source file:jp.primecloud.auto.aws.typica.converter.ReservationConverter.java

License:Open Source License

@Override
protected Reservation convertObject(ReservationDescription from) {
    Reservation to = new Reservation();

    to.setReservationId(from.getReservationId());
    to.setOwnerId(from.getOwner());
    to.setRequesterId(from.getRequestId());
    to.setGroupNames(from.getGroups());/*from  w  ww.j a  v a 2s.c o m*/
    to.setInstances(new InstanceConverter().convert(from.getInstances()));

    return to;
}