public abstract static class SecurityGroup.Builder<T extends SecurityGroup.Builder<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
description |
protected String |
id |
protected com.google.common.collect.ImmutableSet.Builder<IpPermission> |
ipPermissions |
protected String |
name |
protected String |
ownerId |
protected String |
region |
Constructor and Description |
---|
SecurityGroup.Builder() |
Modifier and Type | Method and Description |
---|---|
SecurityGroup |
build() |
T |
description(String description) |
T |
fromSecurityGroup(SecurityGroup in) |
T |
id(String id) |
T |
ipPermission(IpPermission ipPermission) |
T |
ipPermissions(Iterable<IpPermission> ipPermissions) |
T |
name(String name) |
T |
ownerId(String ownerId) |
T |
region(String region) |
T |
role(IpPermission role) |
protected abstract T |
self() |
protected String region
protected String id
protected String name
protected String ownerId
protected String description
protected com.google.common.collect.ImmutableSet.Builder<IpPermission> ipPermissions
protected abstract T self()
public T region(String region)
SecurityGroup.getRegion()
public T id(String id)
SecurityGroup.getId()
public T name(String name)
SecurityGroup.getName()
public T ownerId(String ownerId)
SecurityGroup.getOwnerId()
public T description(String description)
SecurityGroup.getDescription()
public T role(IpPermission role)
SecurityGroup.delegate()
public T ipPermissions(Iterable<IpPermission> ipPermissions)
SecurityGroup.delegate()
public T ipPermission(IpPermission ipPermission)
SecurityGroup.delegate()
public SecurityGroup build()
public T fromSecurityGroup(SecurityGroup in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.