Package org.onosproject.net.domain
Class DomainIntentOperations.Builder
- java.lang.Object
-
- org.onosproject.net.domain.DomainIntentOperations.Builder
-
- Enclosing class:
- DomainIntentOperations
public static final class DomainIntentOperations.Builder extends java.lang.Object
A builder for constructing domain intent operations.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DomainIntentOperations.Builder
add(DomainIntent intent)
Appends a domain intent add to the current stage.DomainIntentOperations
build()
Builds the immutable domain intent operations.DomainIntentOperations
build(DomainIntentOperationsContext cb)
Builds the immutable domain intent operations.DomainIntentOperations.Builder
operation(DomainIntentOperation domainIntentOperation)
Appends an existing domain intent to the current stage.DomainIntentOperations.Builder
remove(DomainIntent intent)
Appends a domain intent removal to the current stage.
-
-
-
Method Detail
-
add
public DomainIntentOperations.Builder add(DomainIntent intent)
Appends a domain intent add to the current stage.- Parameters:
intent
- domain intent- Returns:
- this
-
operation
public DomainIntentOperations.Builder operation(DomainIntentOperation domainIntentOperation)
Appends an existing domain intent to the current stage.- Parameters:
domainIntentOperation
- domain intent operation- Returns:
- this
-
remove
public DomainIntentOperations.Builder remove(DomainIntent intent)
Appends a domain intent removal to the current stage.- Parameters:
intent
- domain intent- Returns:
- this
-
build
public DomainIntentOperations build()
Builds the immutable domain intent operations.- Returns:
- domain intent operations
-
build
public DomainIntentOperations build(DomainIntentOperationsContext cb)
Builds the immutable domain intent operations.- Parameters:
cb
- the callback to call when this operation completes- Returns:
- domain intent operations
-
-