All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.ebs.inputs.SnapshotImportDiskContainerUserBucketArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.66.3
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.ebs.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class SnapshotImportDiskContainerUserBucketArgs extends com.pulumi.resources.ResourceArgs {

    public static final SnapshotImportDiskContainerUserBucketArgs Empty = new SnapshotImportDiskContainerUserBucketArgs();

    /**
     * The name of the Amazon S3 bucket where the disk image is located.
     * 
     */
    @Import(name="s3Bucket", required=true)
    private Output s3Bucket;

    /**
     * @return The name of the Amazon S3 bucket where the disk image is located.
     * 
     */
    public Output s3Bucket() {
        return this.s3Bucket;
    }

    /**
     * The file name of the disk image.
     * 
     */
    @Import(name="s3Key", required=true)
    private Output s3Key;

    /**
     * @return The file name of the disk image.
     * 
     */
    public Output s3Key() {
        return this.s3Key;
    }

    private SnapshotImportDiskContainerUserBucketArgs() {}

    private SnapshotImportDiskContainerUserBucketArgs(SnapshotImportDiskContainerUserBucketArgs $) {
        this.s3Bucket = $.s3Bucket;
        this.s3Key = $.s3Key;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(SnapshotImportDiskContainerUserBucketArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private SnapshotImportDiskContainerUserBucketArgs $;

        public Builder() {
            $ = new SnapshotImportDiskContainerUserBucketArgs();
        }

        public Builder(SnapshotImportDiskContainerUserBucketArgs defaults) {
            $ = new SnapshotImportDiskContainerUserBucketArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param s3Bucket The name of the Amazon S3 bucket where the disk image is located.
         * 
         * @return builder
         * 
         */
        public Builder s3Bucket(Output s3Bucket) {
            $.s3Bucket = s3Bucket;
            return this;
        }

        /**
         * @param s3Bucket The name of the Amazon S3 bucket where the disk image is located.
         * 
         * @return builder
         * 
         */
        public Builder s3Bucket(String s3Bucket) {
            return s3Bucket(Output.of(s3Bucket));
        }

        /**
         * @param s3Key The file name of the disk image.
         * 
         * @return builder
         * 
         */
        public Builder s3Key(Output s3Key) {
            $.s3Key = s3Key;
            return this;
        }

        /**
         * @param s3Key The file name of the disk image.
         * 
         * @return builder
         * 
         */
        public Builder s3Key(String s3Key) {
            return s3Key(Output.of(s3Key));
        }

        public SnapshotImportDiskContainerUserBucketArgs build() {
            if ($.s3Bucket == null) {
                throw new MissingRequiredPropertyException("SnapshotImportDiskContainerUserBucketArgs", "s3Bucket");
            }
            if ($.s3Key == null) {
                throw new MissingRequiredPropertyException("SnapshotImportDiskContainerUserBucketArgs", "s3Key");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy