Class NeutronSecurityGroup
- java.lang.Object
-
- org.openstack4j.openstack.networking.domain.NeutronSecurityGroup
-
- All Implemented Interfaces:
Serializable,Buildable<NetSecurityGroupBuilder>,BasicResource,IdEntity,Resource,ModelEntity,SecurityGroup
public class NeutronSecurityGroup extends Object implements SecurityGroup
An OpenStack Neutron Security Group Rule model.- Author:
- Nathan Anderson
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNeutronSecurityGroup.SecurityGroupConcreteBuilderThe Class SecurityGroupConcreteBuilder.static classNeutronSecurityGroup.SecurityGroupsThe Class SecurityGroups.-
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 NeutronSecurityGroup()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NetSecurityGroupBuilderbuilder()booleanequals(Object obj)StringgetDescription()Gets the description.StringgetId()StringgetName()List<? extends SecurityGroupRule>getRules()Gets the rules.StringgetTenantId()inthashCode()voidsetId(String id)Sets the identifier for this resource.voidsetName(String name)Sets the name for this resourcevoidsetTenantId(String tenantId)Sets the tenant identifierNetSecurityGroupBuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
builder
public static NetSecurityGroupBuilder builder()
-
getDescription
public String getDescription()
Gets the description.- Specified by:
getDescriptionin interfaceSecurityGroup- Returns:
- the description
-
getId
public String getId()
-
setId
public void setId(String id)
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
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceResource- Returns:
- the tenant identifier for this resource
-
setTenantId
public void setTenantId(String tenantId)
Sets 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)
Sets the name for this resource- Specified by:
setNamein interfaceBasicResource- Parameters:
name- the name to set
-
getRules
public List<? extends SecurityGroupRule> getRules()
Gets the rules.- Specified by:
getRulesin interfaceSecurityGroup- Returns:
- the rules
-
toBuilder
public NetSecurityGroupBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<NetSecurityGroupBuilder>
-
-