public abstract static class NetworkOffering.Builder<T extends NetworkOffering.Builder<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected NetworkOfferingAvailabilityType |
availability |
protected Date |
created |
protected String |
displayText |
protected GuestIPType |
guestIPType |
protected String |
id |
protected boolean |
isDefault |
protected Integer |
maxConnections |
protected String |
name |
protected int |
networkRate |
protected boolean |
supportsVLAN |
protected com.google.common.collect.ImmutableSet.Builder<String> |
tags |
protected TrafficType |
trafficType |
Constructor and Description |
---|
NetworkOffering.Builder() |
Modifier and Type | Method and Description |
---|---|
T |
availability(NetworkOfferingAvailabilityType availability) |
NetworkOffering |
build() |
T |
created(Date created) |
T |
displayText(String displayText) |
T |
fromNetworkOffering(NetworkOffering in) |
T |
guestIPType(GuestIPType guestIPType) |
T |
id(String id) |
T |
isDefault(boolean isDefault) |
T |
maxConnections(Integer maxConnections) |
T |
name(String name) |
T |
networkRate(int networkRate) |
protected abstract T |
self() |
T |
supportsVLAN(boolean supportsVLAN) |
T |
tag(String tag) |
T |
tags(Iterable<String> tags) |
T |
trafficType(TrafficType trafficType) |
protected String id
protected String name
protected String displayText
protected Date created
protected NetworkOfferingAvailabilityType availability
protected Integer maxConnections
protected boolean isDefault
protected boolean supportsVLAN
protected TrafficType trafficType
protected GuestIPType guestIPType
protected int networkRate
protected com.google.common.collect.ImmutableSet.Builder<String> tags
protected abstract T self()
public T id(String id)
NetworkOffering.getId()
public T name(String name)
NetworkOffering.getName()
public T displayText(String displayText)
NetworkOffering.getDisplayText()
public T created(Date created)
NetworkOffering.getCreated()
public T availability(NetworkOfferingAvailabilityType availability)
NetworkOffering.getAvailability()
public T maxConnections(Integer maxConnections)
NetworkOffering.getMaxConnections()
public T isDefault(boolean isDefault)
NetworkOffering.isDefault()
public T supportsVLAN(boolean supportsVLAN)
NetworkOffering.supportsVLAN()
public T trafficType(TrafficType trafficType)
NetworkOffering.getTrafficType()
public T guestIPType(GuestIPType guestIPType)
NetworkOffering.getGuestIPType()
public T networkRate(int networkRate)
NetworkOffering.getNetworkRate()
public T tags(Iterable<String> tags)
NetworkOffering.getTags()
public T tag(String tag)
NetworkOffering.getTags()
public NetworkOffering build()
public T fromNetworkOffering(NetworkOffering in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.