Class GbpL3Policy
- java.lang.Object
-
- org.openstack4j.openstack.gbp.domain.GbpL3Policy
-
- All Implemented Interfaces:
Serializable,Buildable<L3PolicyBuilder>,BasicResource,IdEntity,Resource,L3Policy,ModelEntity
public class GbpL3Policy extends Object implements L3Policy
Model implementation for L3 Policy- Author:
- vinod borole
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGbpL3Policy.L3Policiesstatic classGbpL3Policy.L3PolicyConcreteBuilder-
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 GbpL3Policy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static L3PolicyBuilderbuilder()StringgetDescription()Gets the descriptionMap<String,List<String>>getExternalSegments()Gets the external segmentStringgetId()StringgetIpPool()Gets the Ip PoolintgetIpVersion()Gets the Ip versionList<String>getL2Policies()Gets the list of L2 PoliciesStringgetName()List<String>getRouters()Gets the list of routersStringgetSubnetPrefixLength()Gets the subnet prefix lengthStringgetTenantId()booleanisShared()Is L3 Policy sharedvoidsetId(String id)Sets the identifier for this resource.voidsetName(String name)Sets the name for this resourcevoidsetTenantId(String tenantId)Sets the tenant identifierL3PolicyBuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
builder
public static L3PolicyBuilder 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:L3PolicyGets the description- Specified by:
getDescriptionin interfaceL3Policy- Returns:
- the description
-
getExternalSegments
public Map<String,List<String>> getExternalSegments()
Description copied from interface:L3PolicyGets the external segment- Specified by:
getExternalSegmentsin interfaceL3Policy- Returns:
- the external segment
-
getIpVersion
public int getIpVersion()
Description copied from interface:L3PolicyGets the Ip version- Specified by:
getIpVersionin interfaceL3Policy- Returns:
- the Ip version
-
getL2Policies
public List<String> getL2Policies()
Description copied from interface:L3PolicyGets the list of L2 Policies- Specified by:
getL2Policiesin interfaceL3Policy- Returns:
- the list of L2 Policies
-
getRouters
public List<String> getRouters()
Description copied from interface:L3PolicyGets the list of routers- Specified by:
getRoutersin interfaceL3Policy- Returns:
- the list of routers
-
isShared
public boolean isShared()
Description copied from interface:L3PolicyIs L3 Policy shared
-
getSubnetPrefixLength
public String getSubnetPrefixLength()
Description copied from interface:L3PolicyGets the subnet prefix length- Specified by:
getSubnetPrefixLengthin interfaceL3Policy- Returns:
- the subnet prefix length
-
toBuilder
public L3PolicyBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<L3PolicyBuilder>
-
-