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

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

Introduction

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

Prototype


public void setGroupName(String groupName) 

Source Link

Document

The name 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());//from  w w  w.  j a va 2 s  .  c  o  m
    to.setGroupName(from.getName());
    to.setDescription(from.getDescription());
    to.setIpPermissions(new IpPermissionConverter().convert(from.getPermissions()));

    return to;
}