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

com.pulumi.azurenative.devtestlab.outputs.GetFormulaResult 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.devtestlab.outputs;

import com.pulumi.azurenative.devtestlab.outputs.FormulaPropertiesFromVmResponse;
import com.pulumi.azurenative.devtestlab.outputs.LabVirtualMachineCreationParameterResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetFormulaResult {
    /**
     * @return The author of the formula.
     * 
     */
    private String author;
    /**
     * @return The creation date of the formula.
     * 
     */
    private String creationDate;
    /**
     * @return The description of the formula.
     * 
     */
    private @Nullable String description;
    /**
     * @return The content of the formula.
     * 
     */
    private @Nullable LabVirtualMachineCreationParameterResponse formulaContent;
    /**
     * @return The identifier of the resource.
     * 
     */
    private String id;
    /**
     * @return The location of the resource.
     * 
     */
    private @Nullable String location;
    /**
     * @return The name of the resource.
     * 
     */
    private String name;
    /**
     * @return The OS type of the formula.
     * 
     */
    private @Nullable String osType;
    /**
     * @return The provisioning status of the resource.
     * 
     */
    private String provisioningState;
    /**
     * @return The tags of the resource.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The type of the resource.
     * 
     */
    private String type;
    /**
     * @return The unique immutable identifier of a resource (Guid).
     * 
     */
    private String uniqueIdentifier;
    /**
     * @return Information about a VM from which a formula is to be created.
     * 
     */
    private @Nullable FormulaPropertiesFromVmResponse vm;

    private GetFormulaResult() {}
    /**
     * @return The author of the formula.
     * 
     */
    public String author() {
        return this.author;
    }
    /**
     * @return The creation date of the formula.
     * 
     */
    public String creationDate() {
        return this.creationDate;
    }
    /**
     * @return The description of the formula.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The content of the formula.
     * 
     */
    public Optional formulaContent() {
        return Optional.ofNullable(this.formulaContent);
    }
    /**
     * @return The identifier of the resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The location of the resource.
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return The name of the resource.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The OS type of the formula.
     * 
     */
    public Optional osType() {
        return Optional.ofNullable(this.osType);
    }
    /**
     * @return The provisioning status of the resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The tags of the resource.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The unique immutable identifier of a resource (Guid).
     * 
     */
    public String uniqueIdentifier() {
        return this.uniqueIdentifier;
    }
    /**
     * @return Information about a VM from which a formula is to be created.
     * 
     */
    public Optional vm() {
        return Optional.ofNullable(this.vm);
    }

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

    public static Builder builder(GetFormulaResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String author;
        private String creationDate;
        private @Nullable String description;
        private @Nullable LabVirtualMachineCreationParameterResponse formulaContent;
        private String id;
        private @Nullable String location;
        private String name;
        private @Nullable String osType;
        private String provisioningState;
        private @Nullable Map tags;
        private String type;
        private String uniqueIdentifier;
        private @Nullable FormulaPropertiesFromVmResponse vm;
        public Builder() {}
        public Builder(GetFormulaResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.author = defaults.author;
    	      this.creationDate = defaults.creationDate;
    	      this.description = defaults.description;
    	      this.formulaContent = defaults.formulaContent;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.osType = defaults.osType;
    	      this.provisioningState = defaults.provisioningState;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
    	      this.uniqueIdentifier = defaults.uniqueIdentifier;
    	      this.vm = defaults.vm;
        }

        @CustomType.Setter
        public Builder author(String author) {
            if (author == null) {
              throw new MissingRequiredPropertyException("GetFormulaResult", "author");
            }
            this.author = author;
            return this;
        }
        @CustomType.Setter
        public Builder creationDate(String creationDate) {
            if (creationDate == null) {
              throw new MissingRequiredPropertyException("GetFormulaResult", "creationDate");
            }
            this.creationDate = creationDate;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder formulaContent(@Nullable LabVirtualMachineCreationParameterResponse formulaContent) {

            this.formulaContent = formulaContent;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetFormulaResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(@Nullable String location) {

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

            this.osType = osType;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetFormulaResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetFormulaResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder uniqueIdentifier(String uniqueIdentifier) {
            if (uniqueIdentifier == null) {
              throw new MissingRequiredPropertyException("GetFormulaResult", "uniqueIdentifier");
            }
            this.uniqueIdentifier = uniqueIdentifier;
            return this;
        }
        @CustomType.Setter
        public Builder vm(@Nullable FormulaPropertiesFromVmResponse vm) {

            this.vm = vm;
            return this;
        }
        public GetFormulaResult build() {
            final var _resultValue = new GetFormulaResult();
            _resultValue.author = author;
            _resultValue.creationDate = creationDate;
            _resultValue.description = description;
            _resultValue.formulaContent = formulaContent;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.osType = osType;
            _resultValue.provisioningState = provisioningState;
            _resultValue.tags = tags;
            _resultValue.type = type;
            _resultValue.uniqueIdentifier = uniqueIdentifier;
            _resultValue.vm = vm;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy