/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the transfer-2018-11-05.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Transfer.Model
{
///
/// Container for the WorkflowDetail
data type. It is used by actions that
/// trigger a workflow to begin execution.
///
public partial class WorkflowDetails
{
private List _onPartialUpload = new List();
private List _onUpload = new List();
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Max=1)]
public List OnPartialUpload
{
get { return this._onPartialUpload; }
set { this._onPartialUpload = value; }
}
// Check to see if OnPartialUpload property is set
internal bool IsSetOnPartialUpload()
{
return this._onPartialUpload != null && this._onPartialUpload.Count > 0;
}
///
/// Gets and sets the property 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 empty OnUpload
/// object, as in the following example.
///
///
///
/// aws transfer update-server --server-id s-01234567890abcdef --workflow-details
/// '{"OnUpload":[]}'
///
///
[AWSProperty(Max=1)]
public List OnUpload
{
get { return this._onUpload; }
set { this._onUpload = value; }
}
// Check to see if OnUpload property is set
internal bool IsSetOnUpload()
{
return this._onUpload != null && this._onUpload.Count > 0;
}
}
}