/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.transfer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Container for the WorkflowDetail
data type. It is used by actions that trigger a workflow to begin
* execution.
*
* 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 empty OnUpload
object, as in the
* following example.
*
* aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'
*
* 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. *
*/ private java.util.List* 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 empty OnUpload
object, as in the
* following example.
*
* aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'
*
* To remove an associated workflow from a server, you can provide an empty OnUpload
object, as
* in the following example.
*
*
* 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 empty
* aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'
*/
public java.util.ListOnUpload
object, as in the
* following example.
* aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'
*
* To remove an associated workflow from a server, you can provide an empty OnUpload
object, as
* in the following example.
*
*
* 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 empty
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setOnUpload(java.util.Collection)} or {@link #withOnUpload(java.util.Collection)} if you want to override
* the existing values.
* aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'
*/
public void setOnUpload(java.util.CollectionOnUpload
object, as in the
* following example.
* aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'
*
* To remove an associated workflow from a server, you can provide an empty OnUpload
object, as
* in the following example.
*
*
* 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 empty
* aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkflowDetails withOnUpload(WorkflowDetail... onUpload) {
if (this.onUpload == null) {
setOnUpload(new java.util.ArrayListOnUpload
object, as in the
* following example.
* aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'
*
* To remove an associated workflow from a server, you can provide an empty OnUpload
object, as
* in the following example.
*
*
* 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.
* aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkflowDetails withOnUpload(java.util.Collection
* A partial upload occurs when a file is open when the session disconnects.
*/
public java.util.List
* 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.
*
* A partial upload occurs when a file is open when the session disconnects.
*/
public void setOnPartialUpload(java.util.Collection
* 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.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setOnPartialUpload(java.util.Collection)} or {@link #withOnPartialUpload(java.util.Collection)} if you
* want to override the existing values.
*
* A partial upload occurs when a file is open when the session disconnects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkflowDetails withOnPartialUpload(WorkflowDetail... onPartialUpload) {
if (this.onPartialUpload == null) {
setOnPartialUpload(new java.util.ArrayList
* 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.
*
* A partial upload occurs when a file is open when the session disconnects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkflowDetails withOnPartialUpload(java.util.Collection