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

com.pulumi.aws.ec2.SpotDatafeedSubscriptionArgs Maven / Gradle / Ivy

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

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


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

    public static final SpotDatafeedSubscriptionArgs Empty = new SpotDatafeedSubscriptionArgs();

    /**
     * The Amazon S3 bucket in which to store the Spot instance data feed.
     * 
     */
    @Import(name="bucket", required=true)
    private Output bucket;

    /**
     * @return The Amazon S3 bucket in which to store the Spot instance data feed.
     * 
     */
    public Output bucket() {
        return this.bucket;
    }

    /**
     * Path of folder inside bucket to place spot pricing data.
     * 
     */
    @Import(name="prefix")
    private @Nullable Output prefix;

    /**
     * @return Path of folder inside bucket to place spot pricing data.
     * 
     */
    public Optional> prefix() {
        return Optional.ofNullable(this.prefix);
    }

    private SpotDatafeedSubscriptionArgs() {}

    private SpotDatafeedSubscriptionArgs(SpotDatafeedSubscriptionArgs $) {
        this.bucket = $.bucket;
        this.prefix = $.prefix;
    }

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

    public static final class Builder {
        private SpotDatafeedSubscriptionArgs $;

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

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

        /**
         * @param bucket The Amazon S3 bucket in which to store the Spot instance data feed.
         * 
         * @return builder
         * 
         */
        public Builder bucket(Output bucket) {
            $.bucket = bucket;
            return this;
        }

        /**
         * @param bucket The Amazon S3 bucket in which to store the Spot instance data feed.
         * 
         * @return builder
         * 
         */
        public Builder bucket(String bucket) {
            return bucket(Output.of(bucket));
        }

        /**
         * @param prefix Path of folder inside bucket to place spot pricing data.
         * 
         * @return builder
         * 
         */
        public Builder prefix(@Nullable Output prefix) {
            $.prefix = prefix;
            return this;
        }

        /**
         * @param prefix Path of folder inside bucket to place spot pricing data.
         * 
         * @return builder
         * 
         */
        public Builder prefix(String prefix) {
            return prefix(Output.of(prefix));
        }

        public SpotDatafeedSubscriptionArgs build() {
            if ($.bucket == null) {
                throw new MissingRequiredPropertyException("SpotDatafeedSubscriptionArgs", "bucket");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy