public abstract class AbstractNeutronTrunk extends Object implements Trunk
This is the parent class for NeutronTrunk and
NeutronTrunkSubportAddRemove NeutronTrunk has the json root name trunk whereas
NeutronTrunkSubportAddRemove doesn't as the API doesn't expect it
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractNeutronTrunk.TrunkConcreteBuilder |
static class |
AbstractNeutronTrunk.Trunks |
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>| Modifier and Type | Field and Description |
|---|---|
protected boolean |
adminStateUp |
protected String |
description |
protected String |
id |
protected String |
name |
protected String |
parentPortId |
protected int |
revisionNumber |
protected State |
state |
protected String |
tenantId |
protected List<NeutronTrunkSubport> |
trunkSubports |
| Constructor and Description |
|---|
AbstractNeutronTrunk() |
| Modifier and Type | Method and Description |
|---|---|
static TrunkBuilder |
builder() |
boolean |
equals(Object obj) |
String |
getDescription() |
String |
getId() |
String |
getName() |
String |
getParentPort() |
int |
getRevisionNumber() |
State |
getState() |
String |
getTenantId() |
List<NeutronTrunkSubport> |
getTrunkSubports() |
int |
hashCode() |
boolean |
isAdminStateUp() |
void |
setId(String id)
Sets the identifier for this resource.
|
void |
setName(String name)
Sets the name for this resource
|
void |
setPortId(String parentPortId) |
void |
setTenantId(String tenantId)
Sets the tenant identifier
|
TrunkBuilder |
toBuilder() |
String |
toString() |
protected boolean adminStateUp
protected String description
protected String id
protected String name
protected String parentPortId
protected int revisionNumber
protected State state
protected List<NeutronTrunkSubport> trunkSubports
protected String tenantId
public static TrunkBuilder builder()
public String getDescription()
getDescription in interface Trunkpublic String getId()
public void setId(String id)
IdEntitypublic String getName()
getName in interface BasicResourcepublic void setName(String name)
BasicResourcesetName in interface BasicResourcename - the name to setpublic String getParentPort()
getParentPort in interface Trunkpublic int getRevisionNumber()
public State getState()
public List<NeutronTrunkSubport> getTrunkSubports()
getTrunkSubports in interface Trunkpublic String getTenantId()
getTenantId in interface Resourcepublic void setTenantId(String tenantId)
ResourcesetTenantId in interface ResourcetenantId - the tenant id to setpublic boolean isAdminStateUp()
isAdminStateUp in interface Trunkpublic void setPortId(String parentPortId)
public TrunkBuilder toBuilder()
toBuilder in interface Buildable<TrunkBuilder>Copyright © 2021. All rights reserved.