Package org.onosproject.net.intent
Class ProtectionEndpointIntent.Builder
- java.lang.Object
-
- org.onosproject.net.intent.Intent.Builder
-
- org.onosproject.net.intent.ProtectionEndpointIntent.Builder
-
- Enclosing class:
- ProtectionEndpointIntent
public static class ProtectionEndpointIntent.Builder extends Intent.Builder
Builder forProtectionEndpointIntent.
-
-
Field Summary
-
Fields inherited from class org.onosproject.net.intent.Intent.Builder
appId, key, priority, resourceGroup, resources
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()Creates a new empty builder.protectedBuilder(ProtectionEndpointIntent intent)Creates a new builder pre-populated with the information in the given intent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtectionEndpointIntent.BuilderappId(ApplicationId appId)Sets the application id for the intent that will be built.ProtectionEndpointIntentbuild()ProtectionEndpointIntent.Builderdescription(ProtectedTransportEndpointDescription description)ProtectionEndpointIntent.BuilderdeviceId(DeviceId deviceId)ProtectionEndpointIntent.Builderkey(Key key)Sets the key for the intent that will be built.ProtectionEndpointIntent.Builderpriority(int priority)Sets the priority for the intent that will be built.ProtectionEndpointIntent.BuilderresourceGroup(ResourceGroup resourceGroup)Sets the resource group for this intent.ProtectionEndpointIntent.Builderresources(Collection<NetworkResource> resources)Sets the collection of resources required for this intent.
-
-
-
Constructor Detail
-
Builder
protected Builder()
Creates a new empty builder.
-
Builder
protected Builder(ProtectionEndpointIntent intent)
Creates a new builder pre-populated with the information in the given intent.- Parameters:
intent- initial intent
-
-
Method Detail
-
key
public ProtectionEndpointIntent.Builder key(Key key)
Description copied from class:Intent.BuilderSets the key for the intent that will be built.- Overrides:
keyin classIntent.Builder- Parameters:
key- key to use for built intent- Returns:
- this builder
-
appId
public ProtectionEndpointIntent.Builder appId(ApplicationId appId)
Description copied from class:Intent.BuilderSets the application id for the intent that will be built.- Overrides:
appIdin classIntent.Builder- Parameters:
appId- application id to use for built intent- Returns:
- this builder
-
resources
public ProtectionEndpointIntent.Builder resources(Collection<NetworkResource> resources)
Description copied from class:Intent.BuilderSets the collection of resources required for this intent.- Overrides:
resourcesin classIntent.Builder- Parameters:
resources- collection of resources- Returns:
- this builder
-
priority
public ProtectionEndpointIntent.Builder priority(int priority)
Description copied from class:Intent.BuilderSets the priority for the intent that will be built.- Overrides:
priorityin classIntent.Builder- Parameters:
priority- priority to use for built intent- Returns:
- this builder
-
resourceGroup
public ProtectionEndpointIntent.Builder resourceGroup(ResourceGroup resourceGroup)
Description copied from class:Intent.BuilderSets the resource group for this intent.- Overrides:
resourceGroupin classIntent.Builder- Parameters:
resourceGroup- the resource group- Returns:
- this builder
-
deviceId
public ProtectionEndpointIntent.Builder deviceId(DeviceId deviceId)
-
description
public ProtectionEndpointIntent.Builder description(ProtectedTransportEndpointDescription description)
-
build
public ProtectionEndpointIntent build()
-
-