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

com.pulumi.azurenative.azurefleet.outputs.GetFleetResult Maven / Gradle / Ivy

There is a newer version: 2.82.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.outputs;

import com.pulumi.azurenative.azurefleet.outputs.ComputeProfileResponse;
import com.pulumi.azurenative.azurefleet.outputs.ManagedServiceIdentityResponse;
import com.pulumi.azurenative.azurefleet.outputs.PlanResponse;
import com.pulumi.azurenative.azurefleet.outputs.RegularPriorityProfileResponse;
import com.pulumi.azurenative.azurefleet.outputs.SpotPriorityProfileResponse;
import com.pulumi.azurenative.azurefleet.outputs.SystemDataResponse;
import com.pulumi.azurenative.azurefleet.outputs.VmSizeProfileResponse;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class GetFleetResult {
    /**
     * @return Compute Profile to use for running user's workloads.
     * 
     */
    private ComputeProfileResponse computeProfile;
    /**
     * @return Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
     * 
     */
    private String id;
    /**
     * @return The managed service identities assigned to this resource.
     * 
     */
    private @Nullable ManagedServiceIdentityResponse identity;
    /**
     * @return The geo-location where the resource lives
     * 
     */
    private String location;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return Details of the resource plan.
     * 
     */
    private @Nullable PlanResponse plan;
    /**
     * @return The status of the last operation.
     * 
     */
    private String provisioningState;
    /**
     * @return Configuration Options for Regular instances in Compute Fleet.
     * 
     */
    private @Nullable RegularPriorityProfileResponse regularPriorityProfile;
    /**
     * @return Configuration Options for Spot instances in Compute Fleet.
     * 
     */
    private @Nullable SpotPriorityProfileResponse spotPriorityProfile;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Specifies the time at which the Compute Fleet is created.
     * 
     */
    private String timeCreated;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;
    /**
     * @return Specifies the ID which uniquely identifies a Compute Fleet.
     * 
     */
    private String uniqueId;
    /**
     * @return List of VM sizes supported for Compute Fleet
     * 
     */
    private List vmSizesProfile;
    /**
     * @return Zones in which the Compute Fleet is available
     * 
     */
    private @Nullable List zones;

    private GetFleetResult() {}
    /**
     * @return Compute Profile to use for running user's workloads.
     * 
     */
    public ComputeProfileResponse computeProfile() {
        return this.computeProfile;
    }
    /**
     * @return Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The managed service identities assigned to this resource.
     * 
     */
    public Optional identity() {
        return Optional.ofNullable(this.identity);
    }
    /**
     * @return The geo-location where the resource lives
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Details of the resource plan.
     * 
     */
    public Optional plan() {
        return Optional.ofNullable(this.plan);
    }
    /**
     * @return The status of the last operation.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Configuration Options for Regular instances in Compute Fleet.
     * 
     */
    public Optional regularPriorityProfile() {
        return Optional.ofNullable(this.regularPriorityProfile);
    }
    /**
     * @return Configuration Options for Spot instances in Compute Fleet.
     * 
     */
    public Optional spotPriorityProfile() {
        return Optional.ofNullable(this.spotPriorityProfile);
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Specifies the time at which the Compute Fleet is created.
     * 
     */
    public String timeCreated() {
        return this.timeCreated;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Specifies the ID which uniquely identifies a Compute Fleet.
     * 
     */
    public String uniqueId() {
        return this.uniqueId;
    }
    /**
     * @return List of VM sizes supported for Compute Fleet
     * 
     */
    public List vmSizesProfile() {
        return this.vmSizesProfile;
    }
    /**
     * @return Zones in which the Compute Fleet is available
     * 
     */
    public List zones() {
        return this.zones == null ? List.of() : this.zones;
    }

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

    public static Builder builder(GetFleetResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private ComputeProfileResponse computeProfile;
        private String id;
        private @Nullable ManagedServiceIdentityResponse identity;
        private String location;
        private String name;
        private @Nullable PlanResponse plan;
        private String provisioningState;
        private @Nullable RegularPriorityProfileResponse regularPriorityProfile;
        private @Nullable SpotPriorityProfileResponse spotPriorityProfile;
        private SystemDataResponse systemData;
        private @Nullable Map tags;
        private String timeCreated;
        private String type;
        private String uniqueId;
        private List vmSizesProfile;
        private @Nullable List zones;
        public Builder() {}
        public Builder(GetFleetResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.computeProfile = defaults.computeProfile;
    	      this.id = defaults.id;
    	      this.identity = defaults.identity;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.plan = defaults.plan;
    	      this.provisioningState = defaults.provisioningState;
    	      this.regularPriorityProfile = defaults.regularPriorityProfile;
    	      this.spotPriorityProfile = defaults.spotPriorityProfile;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.timeCreated = defaults.timeCreated;
    	      this.type = defaults.type;
    	      this.uniqueId = defaults.uniqueId;
    	      this.vmSizesProfile = defaults.vmSizesProfile;
    	      this.zones = defaults.zones;
        }

        @CustomType.Setter
        public Builder computeProfile(ComputeProfileResponse computeProfile) {
            if (computeProfile == null) {
              throw new MissingRequiredPropertyException("GetFleetResult", "computeProfile");
            }
            this.computeProfile = computeProfile;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetFleetResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder identity(@Nullable ManagedServiceIdentityResponse identity) {

            this.identity = identity;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetFleetResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetFleetResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder plan(@Nullable PlanResponse plan) {

            this.plan = plan;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetFleetResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder regularPriorityProfile(@Nullable RegularPriorityProfileResponse regularPriorityProfile) {

            this.regularPriorityProfile = regularPriorityProfile;
            return this;
        }
        @CustomType.Setter
        public Builder spotPriorityProfile(@Nullable SpotPriorityProfileResponse spotPriorityProfile) {

            this.spotPriorityProfile = spotPriorityProfile;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetFleetResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder timeCreated(String timeCreated) {
            if (timeCreated == null) {
              throw new MissingRequiredPropertyException("GetFleetResult", "timeCreated");
            }
            this.timeCreated = timeCreated;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetFleetResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder uniqueId(String uniqueId) {
            if (uniqueId == null) {
              throw new MissingRequiredPropertyException("GetFleetResult", "uniqueId");
            }
            this.uniqueId = uniqueId;
            return this;
        }
        @CustomType.Setter
        public Builder vmSizesProfile(List vmSizesProfile) {
            if (vmSizesProfile == null) {
              throw new MissingRequiredPropertyException("GetFleetResult", "vmSizesProfile");
            }
            this.vmSizesProfile = vmSizesProfile;
            return this;
        }
        public Builder vmSizesProfile(VmSizeProfileResponse... vmSizesProfile) {
            return vmSizesProfile(List.of(vmSizesProfile));
        }
        @CustomType.Setter
        public Builder zones(@Nullable List zones) {

            this.zones = zones;
            return this;
        }
        public Builder zones(String... zones) {
            return zones(List.of(zones));
        }
        public GetFleetResult build() {
            final var _resultValue = new GetFleetResult();
            _resultValue.computeProfile = computeProfile;
            _resultValue.id = id;
            _resultValue.identity = identity;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.plan = plan;
            _resultValue.provisioningState = provisioningState;
            _resultValue.regularPriorityProfile = regularPriorityProfile;
            _resultValue.spotPriorityProfile = spotPriorityProfile;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.timeCreated = timeCreated;
            _resultValue.type = type;
            _resultValue.uniqueId = uniqueId;
            _resultValue.vmSizesProfile = vmSizesProfile;
            _resultValue.zones = zones;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy