Class GbpNatPool
- java.lang.Object
-
- org.openstack4j.openstack.gbp.domain.GbpNatPool
-
- All Implemented Interfaces:
Serializable,Buildable<NatPoolBuilder>,BasicResource,IdEntity,Resource,NatPool,ModelEntity
public class GbpNatPool extends Object implements NatPool
Model implementation for nat pool- Author:
- vinod borole
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGbpNatPool.NatPoolConcreteBuilderstatic classGbpNatPool.NatPools-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Constructor Summary
Constructors Constructor Description GbpNatPool()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NatPoolBuilderbuilder()StringgetDescription()Gets the descriptionStringgetExternalSegmentId()Gets the External segment IdStringgetId()StringgetIpPool()Gets the Ip PoolStringgetIpVersion()Gets the Ip VersionStringgetName()StringgetSubnetId()Gets the subnet IdStringgetTenantId()booleanisShared()Is Nat Pool sharedvoidsetId(String id)Sets the identifier for this resource.voidsetName(String name)Sets the name for this resourcevoidsetTenantId(String tenantId)Sets the tenant identifierNatPoolBuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
builder
public static NatPoolBuilder builder()
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceResource- Returns:
- the tenant identifier for this resource
-
setTenantId
public void setTenantId(String tenantId)
Description copied from interface:ResourceSets the tenant identifier- Specified by:
setTenantIdin interfaceResource- Parameters:
tenantId- the tenant id to set
-
getName
public String getName()
- Specified by:
getNamein interfaceBasicResource- Returns:
- the name for this resource
-
setName
public void setName(String name)
Description copied from interface:BasicResourceSets the name for this resource- Specified by:
setNamein interfaceBasicResource- Parameters:
name- the name to set
-
getId
public String getId()
-
setId
public void setId(String id)
Description copied from interface:IdEntitySets the identifier for this resource. Note: creating a new resource should not have the idenfier set since OpenStack will assign one on the create call
-
getDescription
public String getDescription()
Description copied from interface:NatPoolGets the description- Specified by:
getDescriptionin interfaceNatPool- Returns:
- the description
-
isShared
public boolean isShared()
Description copied from interface:NatPoolIs Nat Pool shared
-
getExternalSegmentId
public String getExternalSegmentId()
Description copied from interface:NatPoolGets the External segment Id- Specified by:
getExternalSegmentIdin interfaceNatPool- Returns:
- the External segment Id
-
getIpVersion
public String getIpVersion()
Description copied from interface:NatPoolGets the Ip Version- Specified by:
getIpVersionin interfaceNatPool- Returns:
- the Ip Version
-
getSubnetId
public String getSubnetId()
Description copied from interface:NatPoolGets the subnet Id- Specified by:
getSubnetIdin interfaceNatPool- Returns:
- the subnet Id
-
toBuilder
public NatPoolBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<NatPoolBuilder>
-
-