Class GbpExternalPolicyCreate
- java.lang.Object
-
- org.openstack4j.openstack.gbp.domain.GbpExternalPolicyCreate
-
- All Implemented Interfaces:
Serializable,Buildable<ExternalPolicyBuilder>,BasicResource,IdEntity,Resource,ExternalPolicyCreate,ModelEntity
public class GbpExternalPolicyCreate extends Object implements ExternalPolicyCreate
Model implementation for External Policy- Author:
- vinod borole
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGbpExternalPolicyCreate.ExternalPolicyConcreteBuilder-
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 GbpExternalPolicyCreate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExternalPolicyBuilderbuilder()Map<String,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()Map<String,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 identifierExternalPolicyBuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
builder
public static ExternalPolicyBuilder builder()
-
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 Map<String,String> getConsumedPolicyRuleSets()
Gets the consumed policy rule sets Ids- Specified by:
getConsumedPolicyRuleSetsin interfaceExternalPolicyCreate- Returns:
- the consumed policy rule sets ids
-
getProvidedPolicyRuleSets
public Map<String,String> getProvidedPolicyRuleSets()
Gets the provided policy rule sets Ids- Specified by:
getProvidedPolicyRuleSetsin interfaceExternalPolicyCreate- 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 interfaceExternalPolicyCreate- Returns:
- the external segment ids
-
getDescription
public String getDescription()
Gets the description- Specified by:
getDescriptionin interfaceExternalPolicyCreate- Returns:
- the description
-
isShared
public boolean isShared()
Is external policy shared- Specified by:
isSharedin interfaceExternalPolicyCreate- Returns:
- the true if shared and false if not shared
-
toBuilder
public ExternalPolicyBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<ExternalPolicyBuilder>
-
-