public class SecurityGroupBuilder extends ComputeMetadataBuilder
id, tags, type
location, name, providerId, uri, userMetadata
Constructor and Description |
---|
SecurityGroupBuilder() |
Modifier and Type | Method and Description |
---|---|
SecurityGroup |
build() |
static SecurityGroupBuilder |
fromSecurityGroup(SecurityGroup group) |
SecurityGroupBuilder |
id(String id) |
SecurityGroupBuilder |
ids(String id)
set id and providerId to the same value;
|
SecurityGroupBuilder |
ipPermission(IpPermission ipPermission) |
SecurityGroupBuilder |
ipPermissions() |
SecurityGroupBuilder |
ipPermissions(Iterable<IpPermission> ipPermissions) |
SecurityGroupBuilder |
location(Location location) |
SecurityGroupBuilder |
name(String name) |
SecurityGroupBuilder |
ownerId(String ownerId) |
SecurityGroupBuilder |
providerId(String providerId) |
SecurityGroupBuilder |
tags(Iterable<String> tags) |
SecurityGroupBuilder |
uri(URI uri) |
SecurityGroupBuilder |
userMetadata(Map<String,String> userMetadata) |
fromComputeMetadata
public SecurityGroupBuilder ipPermissions()
public SecurityGroupBuilder ipPermissions(Iterable<IpPermission> ipPermissions)
public SecurityGroupBuilder ipPermission(IpPermission ipPermission)
public SecurityGroupBuilder ownerId(String ownerId)
public SecurityGroupBuilder id(String id)
id
in class ComputeMetadataBuilder
public SecurityGroupBuilder tags(Iterable<String> tags)
tags
in class ComputeMetadataBuilder
public SecurityGroupBuilder ids(String id)
ComputeMetadataBuilder
ids
in class ComputeMetadataBuilder
public SecurityGroupBuilder providerId(String providerId)
providerId
in class ComputeMetadataBuilder
public SecurityGroupBuilder name(String name)
name
in class ComputeMetadataBuilder
public SecurityGroupBuilder location(Location location)
location
in class ComputeMetadataBuilder
public SecurityGroupBuilder uri(URI uri)
uri
in class ComputeMetadataBuilder
public SecurityGroupBuilder userMetadata(Map<String,String> userMetadata)
userMetadata
in class ComputeMetadataBuilder
public SecurityGroup build()
build
in class ComputeMetadataBuilder
public static SecurityGroupBuilder fromSecurityGroup(SecurityGroup group)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.