/* * 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; /** *

* Each step type has its own StepDetails structure. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DecryptStepDetails implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the step, used as an identifier. *

*/ private String name; /** *

* The type of encryption used. Currently, this value must be PGP. *

*/ private String type; /** *

* 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. *

* */ private String sourceFileLocation; /** *

* 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: *

* */ private String overwriteExisting; /** *

* 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. *

* */ private InputFileLocation destinationFileLocation; /** *

* The name of the step, used as an identifier. *

* * @param name * The name of the step, used as an identifier. */ public void setName(String name) { this.name = name; } /** *

* The name of the step, used as an identifier. *

* * @return The name of the step, used as an identifier. */ public String getName() { return this.name; } /** *

* The name of the step, used as an identifier. *

* * @param name * The name of the step, used as an identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public DecryptStepDetails withName(String name) { setName(name); return this; } /** *

* The type of encryption used. Currently, this value must be PGP. *

* * @param type * The type of encryption used. Currently, this value must be PGP. * @see EncryptionType */ public void setType(String type) { this.type = type; } /** *

* The type of encryption used. Currently, this value must be PGP. *

* * @return The type of encryption used. Currently, this value must be PGP. * @see EncryptionType */ public String getType() { return this.type; } /** *

* The type of encryption used. Currently, this value must be PGP. *

* * @param type * The type of encryption used. Currently, this value must be PGP. * @return Returns a reference to this object so that method calls can be chained together. * @see EncryptionType */ public DecryptStepDetails withType(String type) { setType(type); return this; } /** *

* The type of encryption used. Currently, this value must be PGP. *

* * @param type * The type of encryption used. Currently, this value must be PGP. * @return Returns a reference to this object so that method calls can be chained together. * @see EncryptionType */ public DecryptStepDetails withType(EncryptionType type) { this.type = type.toString(); return this; } /** *

* 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. *

* * * @param 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.

*