/*
 * 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.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.RestoreSnapshotTierRequestMarshaller;
/**
 * 
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class RestoreSnapshotTierRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest 
     * The ID of the snapshot to restore.
     *  
     * Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary
     * restores only. The snapshot will be automatically re-archived after this period.
     *  
     * To temporarily restore an archived snapshot, specify the number of days and omit the PermanentRestore
     * parameter or set it to  
     * Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot,
     * specify  
     * The ID of the snapshot to restore.
     *  
     * The ID of the snapshot to restore.
     *  
     * The ID of the snapshot to restore.
     *  
     * Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary
     * restores only. The snapshot will be automatically re-archived after this period.
     *  
     * To temporarily restore an archived snapshot, specify the number of days and omit the PermanentRestore
     * parameter or set it to false.
     * true and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.
     * false.
     * 
     *        To temporarily restore an archived snapshot, specify the number of days and omit the
     *        PermanentRestore parameter or set it to false.
     */
    public void setTemporaryRestoreDays(Integer temporaryRestoreDays) {
        this.temporaryRestoreDays = temporaryRestoreDays;
    }
    /**
     * 
* Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary * restores only. The snapshot will be automatically re-archived after this period. *
*
     * To temporarily restore an archived snapshot, specify the number of days and omit the PermanentRestore
     * parameter or set it to false.
     * 
     *         To temporarily restore an archived snapshot, specify the number of days and omit the
     *         PermanentRestore parameter or set it to false.
     */
    public Integer getTemporaryRestoreDays() {
        return this.temporaryRestoreDays;
    }
    /**
     * 
* Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary * restores only. The snapshot will be automatically re-archived after this period. *
*
     * To temporarily restore an archived snapshot, specify the number of days and omit the PermanentRestore
     * parameter or set it to false.
     * 
     *        To temporarily restore an archived snapshot, specify the number of days and omit the
     *        PermanentRestore parameter or set it to false.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public RestoreSnapshotTierRequest withTemporaryRestoreDays(Integer temporaryRestoreDays) {
        setTemporaryRestoreDays(temporaryRestoreDays);
        return this;
    }
    /**
     * 
     * Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot,
     * specify true and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.
     * 
true and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays
     *        parameter.
     */
    public void setPermanentRestore(Boolean permanentRestore) {
        this.permanentRestore = permanentRestore;
    }
    /**
     * 
     * Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot,
     * specify true and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.
     * 
true and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays
     *         parameter.
     */
    public Boolean getPermanentRestore() {
        return this.permanentRestore;
    }
    /**
     * 
     * Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot,
     * specify true and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.
     * 
true and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays
     *        parameter.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public RestoreSnapshotTierRequest withPermanentRestore(Boolean permanentRestore) {
        setPermanentRestore(permanentRestore);
        return this;
    }
    /**
     * 
     * Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot,
     * specify true and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.
     * 
true and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays
     *         parameter.
     */
    public Boolean isPermanentRestore() {
        return this.permanentRestore;
    }
    /**
     * This method is intended for internal use only. Returns the marshaled request configured with additional
     * parameters to enable operation dry-run.
     */
    @Override
    public Request