/*
* 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
{
///
/// Each step type has its own StepDetails
structure.
///
public partial class DecryptStepDetails
{
private InputFileLocation _destinationFileLocation;
private string _name;
private OverwriteExisting _overwriteExisting;
private string _sourceFileLocation;
private EncryptionType _type;
///
/// Gets and sets the property DestinationFileLocation.
///
/// Specifies the location for the file being decrypted. Use ${Transfer:UserName}
/// or ${Transfer:UploadDate}
in this field to parametrize the destination
/// prefix by username or uploaded date.
///
/// -
///
/// Set the value of
DestinationFileLocation
to ${Transfer:UserName}
/// to decrypt uploaded files to an Amazon S3 bucket that is prefixed with the name of
/// the Transfer Family user that uploaded the file.
///
/// -
///
/// Set the value of
DestinationFileLocation
to ${Transfer:UploadDate}
/// to decrypt uploaded files to an Amazon S3 bucket that is prefixed with the date of
/// the upload.
///
///
///
/// The system resolves UploadDate
to a date format of YYYY-MM-DD,
/// based on the date the file is uploaded in UTC.
///
///
///
[AWSProperty(Required=true)]
public InputFileLocation DestinationFileLocation
{
get { return this._destinationFileLocation; }
set { this._destinationFileLocation = value; }
}
// Check to see if DestinationFileLocation property is set
internal bool IsSetDestinationFileLocation()
{
return this._destinationFileLocation != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the step, used as an identifier.
///
///
[AWSProperty(Max=30)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property OverwriteExisting.
///
/// A flag that indicates whether to overwrite an existing file of the same name. The
/// default is FALSE
.
///
///
///
/// If the workflow is processing a file that has the same name as an existing file, the
/// behavior is as follows:
///
/// -
///
/// If
OverwriteExisting
is TRUE
, the existing file is replaced
/// with the file being processed.
///
/// -
///
/// If
OverwriteExisting
is FALSE
, nothing happens, and the
/// workflow processing stops.
///
///
///
public OverwriteExisting OverwriteExisting
{
get { return this._overwriteExisting; }
set { this._overwriteExisting = value; }
}
// Check to see if OverwriteExisting property is set
internal bool IsSetOverwriteExisting()
{
return this._overwriteExisting != null;
}
///
/// Gets and sets the property SourceFileLocation.
///
/// Specifies which file to use as input to the workflow step: either the output from
/// the previous step, or the originally uploaded file for the workflow.
///
/// -
///
/// To use the previous file as the input, enter
${previous.file}
. In this
/// case, this workflow step uses the output file from the previous workflow step as input.
/// This is the default value.
///
/// -
///
/// To use the originally uploaded file location as input for this step, enter
${original.file}
.
///
///
///
[AWSProperty(Max=256)]
public string SourceFileLocation
{
get { return this._sourceFileLocation; }
set { this._sourceFileLocation = value; }
}
// Check to see if SourceFileLocation property is set
internal bool IsSetSourceFileLocation()
{
return this._sourceFileLocation != null;
}
///
/// Gets and sets the property Type.
///
/// The type of encryption used. Currently, this value must be PGP
.
///
///
[AWSProperty(Required=true)]
public EncryptionType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}