Class NeutronPortPairGroup
- java.lang.Object
-
- org.openstack4j.openstack.networking.domain.ext.NeutronPortPairGroup
-
- All Implemented Interfaces:
Serializable,Buildable<PortPairGroupBuilder>,BasicResource,IdEntity,Resource,ModelEntity,PortPairGroup
public class NeutronPortPairGroup extends Object implements PortPairGroup
- Author:
- Dmitry Gerenrot
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNeutronPortPairGroup.PortPairGroupConcreteBuilderstatic classNeutronPortPairGroup.PortPairGroups-
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 NeutronPortPairGroup()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PortPairGroupBuilderbuilder()StringgetDescription()StringgetId()StringgetName()Map<String,Object>getPortPairGroupParameters()List<String>getPortPairs()StringgetTenantId()voidsetDescription(String description)voidsetId(String id)Sets the identifier for this resource.voidsetName(String name)Sets the name for this resourcevoidsetPortPairGroupParameters(Map<String,Object> portPairGroupParameters)voidsetPortPairs(List<String> portPairs)voidsetTenantId(String tenantId)Sets the tenant identifierPortPairGroupBuildertoBuilder()
-
-
-
Method Detail
-
builder
public static PortPairGroupBuilder builder()
-
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
-
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
-
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
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfacePortPairGroup- Returns:
- description : Human readable description for the port pair group
-
setDescription
public void setDescription(String description)
-
getPortPairs
public List<String> getPortPairs()
- Specified by:
getPortPairsin interfacePortPairGroup- Returns:
- list of port pairs in this group
-
getPortPairGroupParameters
public Map<String,Object> getPortPairGroupParameters()
- Specified by:
getPortPairGroupParametersin interfacePortPairGroup- Returns:
- Dictionary of parameters for this group. Possible keys: lb_fields or service_type. Check openstack documentation.
-
setPortPairGroupParameters
public void setPortPairGroupParameters(Map<String,Object> portPairGroupParameters)
-
toBuilder
public PortPairGroupBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<PortPairGroupBuilder>
-
-