Class GbpNetworkServicePolicy
- java.lang.Object
-
- org.openstack4j.openstack.gbp.domain.GbpNetworkServicePolicy
-
- All Implemented Interfaces:
Serializable,Buildable<NetworkServicePolicyBuilder>,BasicResource,IdEntity,Resource,NetworkServicePolicy,ModelEntity
public class GbpNetworkServicePolicy extends Object implements NetworkServicePolicy
Created by sumit gandhi on 7/4/2016.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGbpNetworkServicePolicy.NetworkServicePoliciesstatic classGbpNetworkServicePolicy.NetworkServicePolicyConcreteBuilder-
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 GbpNetworkServicePolicy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NetworkServicePolicyBuilderbuilder()StringgetDescription()Gets the description of the network service policyList<GbpNetworkServiceParams>getGbpNetworkServiceParamsList()Gets the network service parametersStringgetId()StringgetName()List<PolicyTargetGroup>getPolicyTargetGroupList()Gets the policy target groups associated with the service policyStringgetTenantId()booleanisShared()Is the network service policy sharedvoidsetDescription(String description)voidsetGbpNetworkServiceParamsList(List<GbpNetworkServiceParams> gbpNetworkServiceParamsList)voidsetId(String id)Sets the identifier for this resource.voidsetName(String name)Sets the name for this resourcevoidsetShared(boolean shared)voidsetTenantId(String tenantId)Sets the tenant identifierNetworkServicePolicyBuildertoBuilder()
-
-
-
Method Detail
-
builder
public static NetworkServicePolicyBuilder builder()
-
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:NetworkServicePolicyGets the description of the network service policy- Specified by:
getDescriptionin interfaceNetworkServicePolicy- Returns:
- description
-
setDescription
public void setDescription(String description)
-
isShared
public boolean isShared()
Description copied from interface:NetworkServicePolicyIs the network service policy shared- Specified by:
isSharedin interfaceNetworkServicePolicy- Returns:
- boolean
-
setShared
public void setShared(boolean shared)
-
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
-
getGbpNetworkServiceParamsList
public List<GbpNetworkServiceParams> getGbpNetworkServiceParamsList()
Description copied from interface:NetworkServicePolicyGets the network service parameters- Specified by:
getGbpNetworkServiceParamsListin interfaceNetworkServicePolicy- Returns:
- network service parameters
-
setGbpNetworkServiceParamsList
public void setGbpNetworkServiceParamsList(List<GbpNetworkServiceParams> gbpNetworkServiceParamsList)
-
getPolicyTargetGroupList
public List<PolicyTargetGroup> getPolicyTargetGroupList()
Description copied from interface:NetworkServicePolicyGets the policy target groups associated with the service policy- Specified by:
getPolicyTargetGroupListin interfaceNetworkServicePolicy- Returns:
- list of policy target groups
-
toBuilder
public NetworkServicePolicyBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<NetworkServicePolicyBuilder>
-
-