Class TransientDeploymentRequest.Builder.ElementPathDefinitionBuilder<ParentT>
java.lang.Object
dev.getelements.elements.sdk.deployment.TransientDeploymentRequest.Builder.ElementPathDefinitionBuilder<ParentT>
- Type Parameters:
ParentT- the parent builder type
- Enclosing class:
TransientDeploymentRequest.Builder
public static final class TransientDeploymentRequest.Builder.ElementPathDefinitionBuilder<ParentT>
extends Object
Builder for constructing
ElementPathDefinition instances with a fluent API.-
Method Summary
Modifier and TypeMethodDescriptionaddApiArtifact(String artifact) Adds an API artifact.addElementArtifact(String artifact) Adds an element artifact.addElementArtifacts(Iterable<String> artifacts) Adds multiple element artifacts.addSpiArtifact(String artifact) Adds an SPI artifact.addSpiArtifacts(Iterable<String> artifacts) Adds multiple SPI artifacts.addSpiBuiltin(String builtin) Adds a SPI builtin name.apiArtifacts(List<String> apiArtifacts) Sets the API artifacts list.Adds an attribute.attributes(Map<String, Object> attributes) Sets the attributes map.build()Builds the ElementPathDefinition instance.elementArtifacts(List<String> elementArtifacts) Sets the element artifacts list.Builds the ElementPathDefinition and returns to the parent builder.Sets the element path.spiArtifacts(List<String> spiArtifacts) Sets the SPI artifacts list.spiBuiltins(List<String> spiBuiltins) Sets the SPI builtins list.
-
Method Details
-
path
Sets the element path.- Parameters:
path- the element path- Returns:
- this builder
-
apiArtifacts
public TransientDeploymentRequest.Builder.ElementPathDefinitionBuilder<ParentT> apiArtifacts(List<String> apiArtifacts) Sets the API artifacts list.- Parameters:
apiArtifacts- the API artifacts list- Returns:
- this builder
-
addApiArtifact
public TransientDeploymentRequest.Builder.ElementPathDefinitionBuilder<ParentT> addApiArtifact(String artifact) Adds an API artifact.- Parameters:
artifact- the API artifact- Returns:
- this builder
-
spiBuiltins
public TransientDeploymentRequest.Builder.ElementPathDefinitionBuilder<ParentT> spiBuiltins(List<String> spiBuiltins) Sets the SPI builtins list.- Parameters:
spiBuiltins- the SPI builtins list- Returns:
- this builder
-
addSpiBuiltin
public TransientDeploymentRequest.Builder.ElementPathDefinitionBuilder<ParentT> addSpiBuiltin(String builtin) Adds a SPI builtin name.- Parameters:
builtin- the SPI builtin name- Returns:
- this builder
-
spiArtifacts
public TransientDeploymentRequest.Builder.ElementPathDefinitionBuilder<ParentT> spiArtifacts(List<String> spiArtifacts) Sets the SPI artifacts list.- Parameters:
spiArtifacts- the SPI artifacts list- Returns:
- this builder
-
addSpiArtifact
public TransientDeploymentRequest.Builder.ElementPathDefinitionBuilder<ParentT> addSpiArtifact(String artifact) Adds an SPI artifact.- Parameters:
artifact- the SPI artifact- Returns:
- this builder
-
addSpiArtifacts
public TransientDeploymentRequest.Builder.ElementPathDefinitionBuilder<ParentT> addSpiArtifacts(Iterable<String> artifacts) Adds multiple SPI artifacts.- Parameters:
artifacts- the SPI artifacts- Returns:
- this builder
-
elementArtifacts
public TransientDeploymentRequest.Builder.ElementPathDefinitionBuilder<ParentT> elementArtifacts(List<String> elementArtifacts) Sets the element artifacts list.- Parameters:
elementArtifacts- the element artifacts list- Returns:
- this builder
-
addElementArtifact
public TransientDeploymentRequest.Builder.ElementPathDefinitionBuilder<ParentT> addElementArtifact(String artifact) Adds an element artifact.- Parameters:
artifact- the element artifact- Returns:
- this builder
-
addElementArtifacts
public TransientDeploymentRequest.Builder.ElementPathDefinitionBuilder<ParentT> addElementArtifacts(Iterable<String> artifacts) Adds multiple element artifacts.- Parameters:
artifacts- the element artifacts- Returns:
- this builder
-
attributes
public TransientDeploymentRequest.Builder.ElementPathDefinitionBuilder<ParentT> attributes(Map<String, Object> attributes) Sets the attributes map.- Parameters:
attributes- the attributes map- Returns:
- this builder
-
attribute
public TransientDeploymentRequest.Builder.ElementPathDefinitionBuilder<ParentT> attribute(String key, Object value) Adds an attribute.- Parameters:
key- the attribute keyvalue- the attribute value- Returns:
- this builder
-
build
Builds the ElementPathDefinition instance.- Returns:
- a new ElementPathDefinition
-
endElementPath
Builds the ElementPathDefinition and returns to the parent builder.- Returns:
- the parent builder
-