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 class
NeutronPortPairGroup.PortPairGroupConcreteBuilder
static class
NeutronPortPairGroup.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 PortPairGroupBuilder
builder()
String
getDescription()
String
getId()
String
getName()
Map<String,Object>
getPortPairGroupParameters()
List<String>
getPortPairs()
String
getTenantId()
void
setDescription(String description)
void
setId(String id)
Sets the identifier for this resource.void
setName(String name)
Sets the name for this resourcevoid
setPortPairGroupParameters(Map<String,Object> portPairGroupParameters)
void
setPortPairs(List<String> portPairs)
void
setTenantId(String tenantId)
Sets the tenant identifierPortPairGroupBuilder
toBuilder()
-
-
-
Method Detail
-
builder
public static PortPairGroupBuilder builder()
-
getId
public String getId()
-
setId
public void setId(String id)
Description copied from interface:IdEntity
Sets 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:
getName
in interfaceBasicResource
- Returns:
- the name for this resource
-
setName
public void setName(String name)
Description copied from interface:BasicResource
Sets the name for this resource- Specified by:
setName
in interfaceBasicResource
- Parameters:
name
- the name to set
-
getTenantId
public String getTenantId()
- Specified by:
getTenantId
in interfaceResource
- Returns:
- the tenant identifier for this resource
-
setTenantId
public void setTenantId(String tenantId)
Description copied from interface:Resource
Sets the tenant identifier- Specified by:
setTenantId
in interfaceResource
- Parameters:
tenantId
- the tenant id to set
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfacePortPairGroup
- Returns:
- description : Human readable description for the port pair group
-
setDescription
public void setDescription(String description)
-
getPortPairs
public List<String> getPortPairs()
- Specified by:
getPortPairs
in interfacePortPairGroup
- Returns:
- list of port pairs in this group
-
getPortPairGroupParameters
public Map<String,Object> getPortPairGroupParameters()
- Specified by:
getPortPairGroupParameters
in 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:
toBuilder
in interfaceBuildable<PortPairGroupBuilder>
-
-