public static class ProtectionEndpointIntent.Builder extends Intent.Builder
ProtectionEndpointIntent
.appId, key, priority, resourceGroup, resources
Modifier | Constructor and 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.
|
Modifier and Type | Method and 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.
|
protected Builder()
protected Builder(ProtectionEndpointIntent intent)
intent
- initial intentpublic ProtectionEndpointIntent.Builder key(Key key)
Intent.Builder
key
in class Intent.Builder
key
- key to use for built intentpublic ProtectionEndpointIntent.Builder appId(ApplicationId appId)
Intent.Builder
appId
in class Intent.Builder
appId
- application id to use for built intentpublic ProtectionEndpointIntent.Builder resources(java.util.Collection<NetworkResource> resources)
Intent.Builder
resources
in class Intent.Builder
resources
- collection of resourcespublic ProtectionEndpointIntent.Builder priority(int priority)
Intent.Builder
priority
in class Intent.Builder
priority
- priority to use for built intentpublic ProtectionEndpointIntent.Builder resourceGroup(ResourceGroup resourceGroup)
Intent.Builder
resourceGroup
in class Intent.Builder
resourceGroup
- the resource grouppublic ProtectionEndpointIntent.Builder deviceId(DeviceId deviceId)
public ProtectionEndpointIntent.Builder description(ProtectedTransportEndpointDescription description)
public ProtectionEndpointIntent build()