Class GbpPolicyRule
- java.lang.Object
-
- org.openstack4j.openstack.gbp.domain.GbpPolicyRule
-
- All Implemented Interfaces:
Serializable,Buildable<PolicyRuleBuilder>,BasicResource,IdEntity,Resource,PolicyRule,ModelEntity
public class GbpPolicyRule extends Object implements PolicyRule
Model implementation for Policy rule- Author:
- vinod borole
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGbpPolicyRule.PolicyRuleConcreteBuilderstatic classGbpPolicyRule.PolicyRules-
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 GbpPolicyRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicyRuleBuilderbuilder()StringgetDescription()Gets the descriptionStringgetId()StringgetName()List<String>getPolicyActions()Gets the list of Policy actionsStringgetPolicyClassifierId()Gets the policy classifier IdStringgetTenantId()booleanisEnabled()Is policy rule enabledbooleanisShared()Is Policy Rule sharedvoidsetId(String id)Sets the identifier for this resource.voidsetName(String name)Sets the name for this resourcevoidsetTenantId(String tenantId)Sets the tenant identifierPolicyRuleBuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
builder
public static PolicyRuleBuilder 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:PolicyRuleGets the description- Specified by:
getDescriptionin interfacePolicyRule- Returns:
- the description
-
getPolicyClassifierId
public String getPolicyClassifierId()
Description copied from interface:PolicyRuleGets the policy classifier Id- Specified by:
getPolicyClassifierIdin interfacePolicyRule- Returns:
- the policy classifier Id
-
getPolicyActions
public List<String> getPolicyActions()
Description copied from interface:PolicyRuleGets the list of Policy actions- Specified by:
getPolicyActionsin interfacePolicyRule- Returns:
- the list of Policy actions
-
isShared
public boolean isShared()
Description copied from interface:PolicyRuleIs Policy Rule shared- Specified by:
isSharedin interfacePolicyRule- Returns:
- the true if shared and false if not shared
-
isEnabled
public boolean isEnabled()
Description copied from interface:PolicyRuleIs policy rule enabled- Specified by:
isEnabledin interfacePolicyRule- Returns:
- True or False
-
toBuilder
public PolicyRuleBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<PolicyRuleBuilder>
-
-