Class CfnServer.WorkflowDetailsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServer.WorkflowDetailsProperty>
- Enclosing interface:
CfnServer.WorkflowDetailsProperty
CfnServer.WorkflowDetailsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.onPartialUpload
(List<? extends Object> onPartialUpload) Sets the value ofCfnServer.WorkflowDetailsProperty.getOnPartialUpload()
onPartialUpload
(IResolvable onPartialUpload) Sets the value ofCfnServer.WorkflowDetailsProperty.getOnPartialUpload()
Sets the value ofCfnServer.WorkflowDetailsProperty.getOnUpload()
onUpload
(IResolvable onUpload) Sets the value ofCfnServer.WorkflowDetailsProperty.getOnUpload()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
onPartialUpload
@Stability(Stable) public CfnServer.WorkflowDetailsProperty.Builder onPartialUpload(IResolvable onPartialUpload) Sets the value ofCfnServer.WorkflowDetailsProperty.getOnPartialUpload()
- Parameters:
onPartialUpload
- A trigger that starts a workflow if a file is only partially uploaded. You can attach a workflow to a server that executes whenever there is a partial upload.A partial upload occurs when a file is open when the session disconnects.
OnPartialUpload
can contain a maximum of oneWorkflowDetail
object.- Returns:
this
-
onPartialUpload
@Stability(Stable) public CfnServer.WorkflowDetailsProperty.Builder onPartialUpload(List<? extends Object> onPartialUpload) Sets the value ofCfnServer.WorkflowDetailsProperty.getOnPartialUpload()
- Parameters:
onPartialUpload
- A trigger that starts a workflow if a file is only partially uploaded. You can attach a workflow to a server that executes whenever there is a partial upload.A partial upload occurs when a file is open when the session disconnects.
OnPartialUpload
can contain a maximum of oneWorkflowDetail
object.- Returns:
this
-
onUpload
Sets the value ofCfnServer.WorkflowDetailsProperty.getOnUpload()
- Parameters:
onUpload
- A trigger that starts a workflow: the workflow begins to execute after a file is uploaded. To remove an associated workflow from a server, you can provide an emptyOnUpload
object, as in the following example.aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'
OnUpload
can contain a maximum of oneWorkflowDetail
object.- Returns:
this
-
onUpload
@Stability(Stable) public CfnServer.WorkflowDetailsProperty.Builder onUpload(List<? extends Object> onUpload) Sets the value ofCfnServer.WorkflowDetailsProperty.getOnUpload()
- Parameters:
onUpload
- A trigger that starts a workflow: the workflow begins to execute after a file is uploaded. To remove an associated workflow from a server, you can provide an emptyOnUpload
object, as in the following example.aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'
OnUpload
can contain a maximum of oneWorkflowDetail
object.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnServer.WorkflowDetailsProperty>
- Returns:
- a new instance of
CfnServer.WorkflowDetailsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-