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 protected
Builder()
Creates a new empty builder.protected
Builder(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.Builder
appId(ApplicationId appId)
Sets the application id for the intent that will be built.ProtectionEndpointIntent
build()
ProtectionEndpointIntent.Builder
description(ProtectedTransportEndpointDescription description)
ProtectionEndpointIntent.Builder
deviceId(DeviceId deviceId)
ProtectionEndpointIntent.Builder
key(Key key)
Sets the key for the intent that will be built.ProtectionEndpointIntent.Builder
priority(int priority)
Sets the priority for the intent that will be built.ProtectionEndpointIntent.Builder
resourceGroup(ResourceGroup resourceGroup)
Sets the resource group for this intent.ProtectionEndpointIntent.Builder
resources(java.util.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.Builder
Sets the key for the intent that will be built.- Overrides:
key
in 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.Builder
Sets the application id for the intent that will be built.- Overrides:
appId
in classIntent.Builder
- Parameters:
appId
- application id to use for built intent- Returns:
- this builder
-
resources
public ProtectionEndpointIntent.Builder resources(java.util.Collection<NetworkResource> resources)
Description copied from class:Intent.Builder
Sets the collection of resources required for this intent.- Overrides:
resources
in classIntent.Builder
- Parameters:
resources
- collection of resources- Returns:
- this builder
-
priority
public ProtectionEndpointIntent.Builder priority(int priority)
Description copied from class:Intent.Builder
Sets the priority for the intent that will be built.- Overrides:
priority
in 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.Builder
Sets the resource group for this intent.- Overrides:
resourceGroup
in 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()
-
-