Class GbpL2Policy
- java.lang.Object
-
- org.openstack4j.openstack.gbp.domain.GbpL2Policy
-
- All Implemented Interfaces:
Serializable,Buildable<L2PolicyBuilder>,BasicResource,IdEntity,Resource,L2Policy,ModelEntity
public class GbpL2Policy extends Object implements L2Policy
Model implementation for L2 Policy- Author:
- vinod borole
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGbpL2Policy.L2Policiesstatic classGbpL2Policy.L2PolicyConcreteBuilder-
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 GbpL2Policy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static L2PolicyBuilderbuilder()StringgetDescription()Gets the descriptionStringgetId()StringgetL3PolicyId()Gets the L3 Policy IdStringgetName()StringgetNetworkId()Gets the network IdList<String>getPolicyTargetGroups()Gets the list of policy Target groupsStringgetTenantId()booleanisShared()Is L2 Policy sharedvoidsetId(String id)Sets the identifier for this resource.voidsetName(String name)Sets the name for this resourcevoidsetTenantId(String tenantId)Sets the tenant identifierL2PolicyBuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
builder
public static L2PolicyBuilder 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
-
toBuilder
public L2PolicyBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<L2PolicyBuilder>
-
getDescription
public String getDescription()
Description copied from interface:L2PolicyGets the description- Specified by:
getDescriptionin interfaceL2Policy- Returns:
- the description
-
getNetworkId
public String getNetworkId()
Description copied from interface:L2PolicyGets the network Id- Specified by:
getNetworkIdin interfaceL2Policy- Returns:
- the network Id
-
getL3PolicyId
public String getL3PolicyId()
Description copied from interface:L2PolicyGets the L3 Policy Id- Specified by:
getL3PolicyIdin interfaceL2Policy- Returns:
- the L3 Policy Id
-
isShared
public boolean isShared()
Description copied from interface:L2PolicyIs L2 Policy shared
-
getPolicyTargetGroups
public List<String> getPolicyTargetGroups()
Description copied from interface:L2PolicyGets the list of policy Target groups- Specified by:
getPolicyTargetGroupsin interfaceL2Policy- Returns:
- the policy target group list
-
-