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

com.pulumi.aws.fsx.inputs.FileCacheLustreConfigurationArgs 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.fsx.inputs;

import com.pulumi.aws.fsx.inputs.FileCacheLustreConfigurationLogConfigurationArgs;
import com.pulumi.aws.fsx.inputs.FileCacheLustreConfigurationMetadataConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final FileCacheLustreConfigurationArgs Empty = new FileCacheLustreConfigurationArgs();

    /**
     * Specifies the cache deployment type. The only supported value is `CACHE_1`.
     * 
     */
    @Import(name="deploymentType", required=true)
    private Output deploymentType;

    /**
     * @return Specifies the cache deployment type. The only supported value is `CACHE_1`.
     * 
     */
    public Output deploymentType() {
        return this.deploymentType;
    }

    @Import(name="logConfigurations")
    private @Nullable Output> logConfigurations;

    public Optional>> logConfigurations() {
        return Optional.ofNullable(this.logConfigurations);
    }

    /**
     * The configuration for a Lustre MDT (Metadata Target) storage volume. See the `metadata_configuration` block.
     * 
     */
    @Import(name="metadataConfigurations", required=true)
    private Output> metadataConfigurations;

    /**
     * @return The configuration for a Lustre MDT (Metadata Target) storage volume. See the `metadata_configuration` block.
     * 
     */
    public Output> metadataConfigurations() {
        return this.metadataConfigurations;
    }

    @Import(name="mountName")
    private @Nullable Output mountName;

    public Optional> mountName() {
        return Optional.ofNullable(this.mountName);
    }

    /**
     * Provisions the amount of read and write throughput for each 1 tebibyte (TiB) of cache storage capacity, in MB/s/TiB. The only supported value is `1000`.
     * 
     */
    @Import(name="perUnitStorageThroughput", required=true)
    private Output perUnitStorageThroughput;

    /**
     * @return Provisions the amount of read and write throughput for each 1 tebibyte (TiB) of cache storage capacity, in MB/s/TiB. The only supported value is `1000`.
     * 
     */
    public Output perUnitStorageThroughput() {
        return this.perUnitStorageThroughput;
    }

    /**
     * A recurring weekly time, in the format `D:HH:MM`. `D` is the day of the week, for which `1` represents Monday and `7` represents Sunday. `HH` is the zero-padded hour of the day (0-23), and `MM` is the zero-padded minute of the hour. For example, 1:05:00 specifies maintenance at 5 AM Monday. See the [ISO week date](https://en.wikipedia.org/wiki/ISO_week_date) for more information.
     * 
     */
    @Import(name="weeklyMaintenanceStartTime")
    private @Nullable Output weeklyMaintenanceStartTime;

    /**
     * @return A recurring weekly time, in the format `D:HH:MM`. `D` is the day of the week, for which `1` represents Monday and `7` represents Sunday. `HH` is the zero-padded hour of the day (0-23), and `MM` is the zero-padded minute of the hour. For example, 1:05:00 specifies maintenance at 5 AM Monday. See the [ISO week date](https://en.wikipedia.org/wiki/ISO_week_date) for more information.
     * 
     */
    public Optional> weeklyMaintenanceStartTime() {
        return Optional.ofNullable(this.weeklyMaintenanceStartTime);
    }

    private FileCacheLustreConfigurationArgs() {}

    private FileCacheLustreConfigurationArgs(FileCacheLustreConfigurationArgs $) {
        this.deploymentType = $.deploymentType;
        this.logConfigurations = $.logConfigurations;
        this.metadataConfigurations = $.metadataConfigurations;
        this.mountName = $.mountName;
        this.perUnitStorageThroughput = $.perUnitStorageThroughput;
        this.weeklyMaintenanceStartTime = $.weeklyMaintenanceStartTime;
    }

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

    public static final class Builder {
        private FileCacheLustreConfigurationArgs $;

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

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

        /**
         * @param deploymentType Specifies the cache deployment type. The only supported value is `CACHE_1`.
         * 
         * @return builder
         * 
         */
        public Builder deploymentType(Output deploymentType) {
            $.deploymentType = deploymentType;
            return this;
        }

        /**
         * @param deploymentType Specifies the cache deployment type. The only supported value is `CACHE_1`.
         * 
         * @return builder
         * 
         */
        public Builder deploymentType(String deploymentType) {
            return deploymentType(Output.of(deploymentType));
        }

        public Builder logConfigurations(@Nullable Output> logConfigurations) {
            $.logConfigurations = logConfigurations;
            return this;
        }

        public Builder logConfigurations(List logConfigurations) {
            return logConfigurations(Output.of(logConfigurations));
        }

        public Builder logConfigurations(FileCacheLustreConfigurationLogConfigurationArgs... logConfigurations) {
            return logConfigurations(List.of(logConfigurations));
        }

        /**
         * @param metadataConfigurations The configuration for a Lustre MDT (Metadata Target) storage volume. See the `metadata_configuration` block.
         * 
         * @return builder
         * 
         */
        public Builder metadataConfigurations(Output> metadataConfigurations) {
            $.metadataConfigurations = metadataConfigurations;
            return this;
        }

        /**
         * @param metadataConfigurations The configuration for a Lustre MDT (Metadata Target) storage volume. See the `metadata_configuration` block.
         * 
         * @return builder
         * 
         */
        public Builder metadataConfigurations(List metadataConfigurations) {
            return metadataConfigurations(Output.of(metadataConfigurations));
        }

        /**
         * @param metadataConfigurations The configuration for a Lustre MDT (Metadata Target) storage volume. See the `metadata_configuration` block.
         * 
         * @return builder
         * 
         */
        public Builder metadataConfigurations(FileCacheLustreConfigurationMetadataConfigurationArgs... metadataConfigurations) {
            return metadataConfigurations(List.of(metadataConfigurations));
        }

        public Builder mountName(@Nullable Output mountName) {
            $.mountName = mountName;
            return this;
        }

        public Builder mountName(String mountName) {
            return mountName(Output.of(mountName));
        }

        /**
         * @param perUnitStorageThroughput Provisions the amount of read and write throughput for each 1 tebibyte (TiB) of cache storage capacity, in MB/s/TiB. The only supported value is `1000`.
         * 
         * @return builder
         * 
         */
        public Builder perUnitStorageThroughput(Output perUnitStorageThroughput) {
            $.perUnitStorageThroughput = perUnitStorageThroughput;
            return this;
        }

        /**
         * @param perUnitStorageThroughput Provisions the amount of read and write throughput for each 1 tebibyte (TiB) of cache storage capacity, in MB/s/TiB. The only supported value is `1000`.
         * 
         * @return builder
         * 
         */
        public Builder perUnitStorageThroughput(Integer perUnitStorageThroughput) {
            return perUnitStorageThroughput(Output.of(perUnitStorageThroughput));
        }

        /**
         * @param weeklyMaintenanceStartTime A recurring weekly time, in the format `D:HH:MM`. `D` is the day of the week, for which `1` represents Monday and `7` represents Sunday. `HH` is the zero-padded hour of the day (0-23), and `MM` is the zero-padded minute of the hour. For example, 1:05:00 specifies maintenance at 5 AM Monday. See the [ISO week date](https://en.wikipedia.org/wiki/ISO_week_date) for more information.
         * 
         * @return builder
         * 
         */
        public Builder weeklyMaintenanceStartTime(@Nullable Output weeklyMaintenanceStartTime) {
            $.weeklyMaintenanceStartTime = weeklyMaintenanceStartTime;
            return this;
        }

        /**
         * @param weeklyMaintenanceStartTime A recurring weekly time, in the format `D:HH:MM`. `D` is the day of the week, for which `1` represents Monday and `7` represents Sunday. `HH` is the zero-padded hour of the day (0-23), and `MM` is the zero-padded minute of the hour. For example, 1:05:00 specifies maintenance at 5 AM Monday. See the [ISO week date](https://en.wikipedia.org/wiki/ISO_week_date) for more information.
         * 
         * @return builder
         * 
         */
        public Builder weeklyMaintenanceStartTime(String weeklyMaintenanceStartTime) {
            return weeklyMaintenanceStartTime(Output.of(weeklyMaintenanceStartTime));
        }

        public FileCacheLustreConfigurationArgs build() {
            if ($.deploymentType == null) {
                throw new MissingRequiredPropertyException("FileCacheLustreConfigurationArgs", "deploymentType");
            }
            if ($.metadataConfigurations == null) {
                throw new MissingRequiredPropertyException("FileCacheLustreConfigurationArgs", "metadataConfigurations");
            }
            if ($.perUnitStorageThroughput == null) {
                throw new MissingRequiredPropertyException("FileCacheLustreConfigurationArgs", "perUnitStorageThroughput");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy