Class GbpExternalPolicy
- java.lang.Object
-
- org.openstack4j.openstack.gbp.domain.GbpExternalPolicy
-
- All Implemented Interfaces:
Serializable,BasicResource,IdEntity,Resource,ExternalPolicy,ModelEntity
public class GbpExternalPolicy extends Object implements ExternalPolicy
Model implementation for External Policy- Author:
- vinod borole
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGbpExternalPolicy.ExternalPolicies
-
Constructor Summary
Constructors Constructor Description GbpExternalPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getConsumedPolicyRuleSets()Gets the consumed policy rule sets IdsStringgetDescription()Gets the descriptionList<String>getExternalSegments()Gets the external segments associated with this external policy IdsStringgetId()StringgetName()List<String>getProvidedPolicyRuleSets()Gets the provided policy rule sets IdsStringgetTenantId()booleanisShared()Is external policy sharedvoidsetId(String id)Sets the identifier for this resource.voidsetName(String name)Sets the name for this resourcevoidsetTenantId(String tenantId)Sets the tenant identifierStringtoString()
-
-
-
Method Detail
-
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
-
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
-
getConsumedPolicyRuleSets
public List<String> getConsumedPolicyRuleSets()
Gets the consumed policy rule sets Ids- Specified by:
getConsumedPolicyRuleSetsin interfaceExternalPolicy- Returns:
- the consumed policy rule sets ids
-
getProvidedPolicyRuleSets
public List<String> getProvidedPolicyRuleSets()
Gets the provided policy rule sets Ids- Specified by:
getProvidedPolicyRuleSetsin interfaceExternalPolicy- Returns:
- the provided policy rule sets ids
-
getExternalSegments
public List<String> getExternalSegments()
Gets the external segments associated with this external policy Ids- Specified by:
getExternalSegmentsin interfaceExternalPolicy- Returns:
- the external segment ids
-
getDescription
public String getDescription()
Gets the description- Specified by:
getDescriptionin interfaceExternalPolicy- Returns:
- the description
-
isShared
public boolean isShared()
Is external policy shared- Specified by:
isSharedin interfaceExternalPolicy- Returns:
- the true if shared and false if not shared
-
-