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

com.pulumi.azurenative.azurefleet.FleetArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.azurefleet;

import com.pulumi.azurenative.azurefleet.inputs.ComputeProfileArgs;
import com.pulumi.azurenative.azurefleet.inputs.ManagedServiceIdentityArgs;
import com.pulumi.azurenative.azurefleet.inputs.PlanArgs;
import com.pulumi.azurenative.azurefleet.inputs.RegularPriorityProfileArgs;
import com.pulumi.azurenative.azurefleet.inputs.SpotPriorityProfileArgs;
import com.pulumi.azurenative.azurefleet.inputs.VmSizeProfileArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final FleetArgs Empty = new FleetArgs();

    /**
     * Compute Profile to use for running user's workloads.
     * 
     */
    @Import(name="computeProfile", required=true)
    private Output computeProfile;

    /**
     * @return Compute Profile to use for running user's workloads.
     * 
     */
    public Output computeProfile() {
        return this.computeProfile;
    }

    /**
     * The name of the Compute Fleet
     * 
     */
    @Import(name="fleetName")
    private @Nullable Output fleetName;

    /**
     * @return The name of the Compute Fleet
     * 
     */
    public Optional> fleetName() {
        return Optional.ofNullable(this.fleetName);
    }

    /**
     * The managed service identities assigned to this resource.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return The managed service identities assigned to this resource.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Details of the resource plan.
     * 
     */
    @Import(name="plan")
    private @Nullable Output plan;

    /**
     * @return Details of the resource plan.
     * 
     */
    public Optional> plan() {
        return Optional.ofNullable(this.plan);
    }

    /**
     * Configuration Options for Regular instances in Compute Fleet.
     * 
     */
    @Import(name="regularPriorityProfile")
    private @Nullable Output regularPriorityProfile;

    /**
     * @return Configuration Options for Regular instances in Compute Fleet.
     * 
     */
    public Optional> regularPriorityProfile() {
        return Optional.ofNullable(this.regularPriorityProfile);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Configuration Options for Spot instances in Compute Fleet.
     * 
     */
    @Import(name="spotPriorityProfile")
    private @Nullable Output spotPriorityProfile;

    /**
     * @return Configuration Options for Spot instances in Compute Fleet.
     * 
     */
    public Optional> spotPriorityProfile() {
        return Optional.ofNullable(this.spotPriorityProfile);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * List of VM sizes supported for Compute Fleet
     * 
     */
    @Import(name="vmSizesProfile", required=true)
    private Output> vmSizesProfile;

    /**
     * @return List of VM sizes supported for Compute Fleet
     * 
     */
    public Output> vmSizesProfile() {
        return this.vmSizesProfile;
    }

    /**
     * Zones in which the Compute Fleet is available
     * 
     */
    @Import(name="zones")
    private @Nullable Output> zones;

    /**
     * @return Zones in which the Compute Fleet is available
     * 
     */
    public Optional>> zones() {
        return Optional.ofNullable(this.zones);
    }

    private FleetArgs() {}

    private FleetArgs(FleetArgs $) {
        this.computeProfile = $.computeProfile;
        this.fleetName = $.fleetName;
        this.identity = $.identity;
        this.location = $.location;
        this.plan = $.plan;
        this.regularPriorityProfile = $.regularPriorityProfile;
        this.resourceGroupName = $.resourceGroupName;
        this.spotPriorityProfile = $.spotPriorityProfile;
        this.tags = $.tags;
        this.vmSizesProfile = $.vmSizesProfile;
        this.zones = $.zones;
    }

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

    public static final class Builder {
        private FleetArgs $;

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

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

        /**
         * @param computeProfile Compute Profile to use for running user's workloads.
         * 
         * @return builder
         * 
         */
        public Builder computeProfile(Output computeProfile) {
            $.computeProfile = computeProfile;
            return this;
        }

        /**
         * @param computeProfile Compute Profile to use for running user's workloads.
         * 
         * @return builder
         * 
         */
        public Builder computeProfile(ComputeProfileArgs computeProfile) {
            return computeProfile(Output.of(computeProfile));
        }

        /**
         * @param fleetName The name of the Compute Fleet
         * 
         * @return builder
         * 
         */
        public Builder fleetName(@Nullable Output fleetName) {
            $.fleetName = fleetName;
            return this;
        }

        /**
         * @param fleetName The name of the Compute Fleet
         * 
         * @return builder
         * 
         */
        public Builder fleetName(String fleetName) {
            return fleetName(Output.of(fleetName));
        }

        /**
         * @param identity The managed service identities assigned to this resource.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity The managed service identities assigned to this resource.
         * 
         * @return builder
         * 
         */
        public Builder identity(ManagedServiceIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param plan Details of the resource plan.
         * 
         * @return builder
         * 
         */
        public Builder plan(@Nullable Output plan) {
            $.plan = plan;
            return this;
        }

        /**
         * @param plan Details of the resource plan.
         * 
         * @return builder
         * 
         */
        public Builder plan(PlanArgs plan) {
            return plan(Output.of(plan));
        }

        /**
         * @param regularPriorityProfile Configuration Options for Regular instances in Compute Fleet.
         * 
         * @return builder
         * 
         */
        public Builder regularPriorityProfile(@Nullable Output regularPriorityProfile) {
            $.regularPriorityProfile = regularPriorityProfile;
            return this;
        }

        /**
         * @param regularPriorityProfile Configuration Options for Regular instances in Compute Fleet.
         * 
         * @return builder
         * 
         */
        public Builder regularPriorityProfile(RegularPriorityProfileArgs regularPriorityProfile) {
            return regularPriorityProfile(Output.of(regularPriorityProfile));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param spotPriorityProfile Configuration Options for Spot instances in Compute Fleet.
         * 
         * @return builder
         * 
         */
        public Builder spotPriorityProfile(@Nullable Output spotPriorityProfile) {
            $.spotPriorityProfile = spotPriorityProfile;
            return this;
        }

        /**
         * @param spotPriorityProfile Configuration Options for Spot instances in Compute Fleet.
         * 
         * @return builder
         * 
         */
        public Builder spotPriorityProfile(SpotPriorityProfileArgs spotPriorityProfile) {
            return spotPriorityProfile(Output.of(spotPriorityProfile));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param vmSizesProfile List of VM sizes supported for Compute Fleet
         * 
         * @return builder
         * 
         */
        public Builder vmSizesProfile(Output> vmSizesProfile) {
            $.vmSizesProfile = vmSizesProfile;
            return this;
        }

        /**
         * @param vmSizesProfile List of VM sizes supported for Compute Fleet
         * 
         * @return builder
         * 
         */
        public Builder vmSizesProfile(List vmSizesProfile) {
            return vmSizesProfile(Output.of(vmSizesProfile));
        }

        /**
         * @param vmSizesProfile List of VM sizes supported for Compute Fleet
         * 
         * @return builder
         * 
         */
        public Builder vmSizesProfile(VmSizeProfileArgs... vmSizesProfile) {
            return vmSizesProfile(List.of(vmSizesProfile));
        }

        /**
         * @param zones Zones in which the Compute Fleet is available
         * 
         * @return builder
         * 
         */
        public Builder zones(@Nullable Output> zones) {
            $.zones = zones;
            return this;
        }

        /**
         * @param zones Zones in which the Compute Fleet is available
         * 
         * @return builder
         * 
         */
        public Builder zones(List zones) {
            return zones(Output.of(zones));
        }

        /**
         * @param zones Zones in which the Compute Fleet is available
         * 
         * @return builder
         * 
         */
        public Builder zones(String... zones) {
            return zones(List.of(zones));
        }

        public FleetArgs build() {
            if ($.computeProfile == null) {
                throw new MissingRequiredPropertyException("FleetArgs", "computeProfile");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("FleetArgs", "resourceGroupName");
            }
            if ($.vmSizesProfile == null) {
                throw new MissingRequiredPropertyException("FleetArgs", "vmSizesProfile");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy