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

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

Introduction

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

Prototype


public void setOwnerId(String ownerId) 

Source Link

Document

The AWS account ID of the owner of the security group.

Usage

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

License:Open Source License

@Override
protected SecurityGroup convertObject(GroupDescription from) {
    SecurityGroup to = new SecurityGroup();

    to.setOwnerId(from.getOwner());
    to.setGroupName(from.getName());//from  ww  w . j a  v a2 s.c o m
    to.setDescription(from.getDescription());
    to.setIpPermissions(new IpPermissionConverter().convert(from.getPermissions()));

    return to;
}