Class GbpExternalSegment
- java.lang.Object
-
- org.openstack4j.openstack.gbp.domain.GbpExternalSegment
-
- All Implemented Interfaces:
Serializable,Buildable<ExternalSegmentBuilder>,BasicResource,IdEntity,Resource,ExternalSegment,ModelEntity
public class GbpExternalSegment extends Object implements ExternalSegment
Model implementation for External Segments- Author:
- vinod borole
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGbpExternalSegment.ExternalSegmentConcreteBuilderstatic classGbpExternalSegment.ExternalSegments-
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 GbpExternalSegment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExternalSegmentBuilderbuilder()StringgetCidr()Gets the cidrStringgetDescription()Gets the descriptionList<String>getExternalPolicies()Gets the external policiesList<GbpExternalRoutes>getExternalRoutes()Gets the list of external routesStringgetId()intgetIpVersion()Gets the Ip versionList<String>getL3Policies()Gets the L3 policiesStringgetName()List<String>getNatpools()Gets the list of nat poolsStringgetSubnetId()Gets the subnet IdStringgetTenantId()booleanisPortAddressTranslation()Gets Is Port address TransalationbooleanisShared()Is external segment sharedvoidsetId(String id)Sets the identifier for this resource.voidsetName(String name)Sets the name for this resourcevoidsetTenantId(String tenantId)Sets the tenant identifierExternalSegmentBuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
builder
public static ExternalSegmentBuilder 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
-
getExternalPolicies
public List<String> getExternalPolicies()
Description copied from interface:ExternalSegmentGets the external policies- Specified by:
getExternalPoliciesin interfaceExternalSegment- Returns:
- the external policies
-
getIpVersion
public int getIpVersion()
Description copied from interface:ExternalSegmentGets the Ip version- Specified by:
getIpVersionin interfaceExternalSegment- Returns:
- the Ip version
-
getCidr
public String getCidr()
Description copied from interface:ExternalSegmentGets the cidr- Specified by:
getCidrin interfaceExternalSegment- Returns:
- the cidr
-
getDescription
public String getDescription()
Description copied from interface:ExternalSegmentGets the description- Specified by:
getDescriptionin interfaceExternalSegment- Returns:
- the description
-
isShared
public boolean isShared()
Description copied from interface:ExternalSegmentIs external segment shared- Specified by:
isSharedin interfaceExternalSegment- Returns:
- the true if shared and false if not shared
-
getSubnetId
public String getSubnetId()
Description copied from interface:ExternalSegmentGets the subnet Id- Specified by:
getSubnetIdin interfaceExternalSegment- Returns:
- the subnet Id
-
getL3Policies
public List<String> getL3Policies()
Description copied from interface:ExternalSegmentGets the L3 policies- Specified by:
getL3Policiesin interfaceExternalSegment- Returns:
- the L3 Policies
-
getNatpools
public List<String> getNatpools()
Description copied from interface:ExternalSegmentGets the list of nat pools- Specified by:
getNatpoolsin interfaceExternalSegment- Returns:
- the list of nat pools
-
isPortAddressTranslation
public boolean isPortAddressTranslation()
Description copied from interface:ExternalSegmentGets Is Port address Transalation- Specified by:
isPortAddressTranslationin interfaceExternalSegment- Returns:
- True or False
-
getExternalRoutes
public List<GbpExternalRoutes> getExternalRoutes()
Description copied from interface:ExternalSegmentGets the list of external routes- Specified by:
getExternalRoutesin interfaceExternalSegment- Returns:
- the list of external routes
-
toBuilder
public ExternalSegmentBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<ExternalSegmentBuilder>
-
-