public static class ParameterDefinition.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ParameterDefinition |
build() |
ParameterDefinition.Builder |
copy(ParameterDefinition model) |
ParameterDefinition.Builder |
defaultValue(String defaultValue)
Default value for the parameter.
|
ParameterDefinition.Builder |
description(String description)
Description of the parameter.
|
ParameterDefinition.Builder |
direction(ParameterDefinition.Direction direction)
Is this parameter an input parameter, output parameter, or both?
|
ParameterDefinition.Builder |
isRequired(Boolean isRequired)
Is this parameter required.
|
ParameterDefinition.Builder |
isSensitive(Boolean isSensitive)
Is the data for this parameter sensitive (e.g.
|
ParameterDefinition.Builder |
maxLength(Integer maxLength)
Used for character string types such as STRING to constrain the length of the value
|
ParameterDefinition.Builder |
minLength(Integer minLength)
Used for character string types such as STRING to constrain the length of the value
|
ParameterDefinition.Builder |
name(String name)
The name of the parameter
|
ParameterDefinition.Builder |
pattern(String pattern)
Regular expression used to validate the value of a string type such as STRING
|
ParameterDefinition.Builder |
resourceTypeMetadata(Object resourceTypeMetadata)
Any configuration needed to help the resource type process this parameter (e.g.
|
ParameterDefinition.Builder |
type(ParameterDefinition.Type type)
Enumerated parameter type.
|
ParameterDefinition.Builder |
uiPlacementHint(String uiPlacementHint)
A forward-slash-delimited ‘path’ in an imaginary hierarchy, at which this parameter’s UI
widgets should be placed
|
public ParameterDefinition.Builder name(String name)
The name of the parameter
name
- the value to setpublic ParameterDefinition.Builder type(ParameterDefinition.Type type)
Enumerated parameter type.
type
- the value to setpublic ParameterDefinition.Builder description(String description)
Description of the parameter.
description
- the value to setpublic ParameterDefinition.Builder isRequired(Boolean isRequired)
Is this parameter required. Ignored for parameters with direction = OUTPUT.
isRequired
- the value to setpublic ParameterDefinition.Builder isSensitive(Boolean isSensitive)
Is the data for this parameter sensitive (e.g. should the data be hidden in UI, encrypted if stored, etc.)
isSensitive
- the value to setpublic ParameterDefinition.Builder defaultValue(String defaultValue)
Default value for the parameter.
defaultValue
- the value to setpublic ParameterDefinition.Builder minLength(Integer minLength)
Used for character string types such as STRING to constrain the length of the value
minLength
- the value to setpublic ParameterDefinition.Builder maxLength(Integer maxLength)
Used for character string types such as STRING to constrain the length of the value
maxLength
- the value to setpublic ParameterDefinition.Builder pattern(String pattern)
Regular expression used to validate the value of a string type such as STRING
pattern
- the value to setpublic ParameterDefinition.Builder direction(ParameterDefinition.Direction direction)
Is this parameter an input parameter, output parameter, or both?
direction
- the value to setpublic ParameterDefinition.Builder uiPlacementHint(String uiPlacementHint)
A forward-slash-delimited ‘path’ in an imaginary hierarchy, at which this parameter’s UI widgets should be placed
uiPlacementHint
- the value to setpublic ParameterDefinition.Builder resourceTypeMetadata(Object resourceTypeMetadata)
Any configuration needed to help the resource type process this parameter (e.g. link to manifest, etc.).
resourceTypeMetadata
- the value to setpublic ParameterDefinition build()
public ParameterDefinition.Builder copy(ParameterDefinition model)
Copyright © 2016–2024. All rights reserved.