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

com.pulumi.azurenative.hybridcompute.inputs.LicenseDetailsArgs 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.hybridcompute.inputs;

import com.pulumi.azurenative.hybridcompute.enums.LicenseCoreType;
import com.pulumi.azurenative.hybridcompute.enums.LicenseEdition;
import com.pulumi.azurenative.hybridcompute.enums.LicenseState;
import com.pulumi.azurenative.hybridcompute.enums.LicenseTarget;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes the properties of a License.
 * 
 */
public final class LicenseDetailsArgs extends com.pulumi.resources.ResourceArgs {

    public static final LicenseDetailsArgs Empty = new LicenseDetailsArgs();

    /**
     * Describes the edition of the license. The values are either Standard or Datacenter.
     * 
     */
    @Import(name="edition")
    private @Nullable Output> edition;

    /**
     * @return Describes the edition of the license. The values are either Standard or Datacenter.
     * 
     */
    public Optional>> edition() {
        return Optional.ofNullable(this.edition);
    }

    /**
     * Describes the number of processors.
     * 
     */
    @Import(name="processors")
    private @Nullable Output processors;

    /**
     * @return Describes the number of processors.
     * 
     */
    public Optional> processors() {
        return Optional.ofNullable(this.processors);
    }

    /**
     * Describes the state of the license.
     * 
     */
    @Import(name="state")
    private @Nullable Output> state;

    /**
     * @return Describes the state of the license.
     * 
     */
    public Optional>> state() {
        return Optional.ofNullable(this.state);
    }

    /**
     * Describes the license target server.
     * 
     */
    @Import(name="target")
    private @Nullable Output> target;

    /**
     * @return Describes the license target server.
     * 
     */
    public Optional>> target() {
        return Optional.ofNullable(this.target);
    }

    /**
     * Describes the license core type (pCore or vCore).
     * 
     */
    @Import(name="type")
    private @Nullable Output> type;

    /**
     * @return Describes the license core type (pCore or vCore).
     * 
     */
    public Optional>> type() {
        return Optional.ofNullable(this.type);
    }

    private LicenseDetailsArgs() {}

    private LicenseDetailsArgs(LicenseDetailsArgs $) {
        this.edition = $.edition;
        this.processors = $.processors;
        this.state = $.state;
        this.target = $.target;
        this.type = $.type;
    }

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

    public static final class Builder {
        private LicenseDetailsArgs $;

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

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

        /**
         * @param edition Describes the edition of the license. The values are either Standard or Datacenter.
         * 
         * @return builder
         * 
         */
        public Builder edition(@Nullable Output> edition) {
            $.edition = edition;
            return this;
        }

        /**
         * @param edition Describes the edition of the license. The values are either Standard or Datacenter.
         * 
         * @return builder
         * 
         */
        public Builder edition(Either edition) {
            return edition(Output.of(edition));
        }

        /**
         * @param edition Describes the edition of the license. The values are either Standard or Datacenter.
         * 
         * @return builder
         * 
         */
        public Builder edition(String edition) {
            return edition(Either.ofLeft(edition));
        }

        /**
         * @param edition Describes the edition of the license. The values are either Standard or Datacenter.
         * 
         * @return builder
         * 
         */
        public Builder edition(LicenseEdition edition) {
            return edition(Either.ofRight(edition));
        }

        /**
         * @param processors Describes the number of processors.
         * 
         * @return builder
         * 
         */
        public Builder processors(@Nullable Output processors) {
            $.processors = processors;
            return this;
        }

        /**
         * @param processors Describes the number of processors.
         * 
         * @return builder
         * 
         */
        public Builder processors(Integer processors) {
            return processors(Output.of(processors));
        }

        /**
         * @param state Describes the state of the license.
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output> state) {
            $.state = state;
            return this;
        }

        /**
         * @param state Describes the state of the license.
         * 
         * @return builder
         * 
         */
        public Builder state(Either state) {
            return state(Output.of(state));
        }

        /**
         * @param state Describes the state of the license.
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Either.ofLeft(state));
        }

        /**
         * @param state Describes the state of the license.
         * 
         * @return builder
         * 
         */
        public Builder state(LicenseState state) {
            return state(Either.ofRight(state));
        }

        /**
         * @param target Describes the license target server.
         * 
         * @return builder
         * 
         */
        public Builder target(@Nullable Output> target) {
            $.target = target;
            return this;
        }

        /**
         * @param target Describes the license target server.
         * 
         * @return builder
         * 
         */
        public Builder target(Either target) {
            return target(Output.of(target));
        }

        /**
         * @param target Describes the license target server.
         * 
         * @return builder
         * 
         */
        public Builder target(String target) {
            return target(Either.ofLeft(target));
        }

        /**
         * @param target Describes the license target server.
         * 
         * @return builder
         * 
         */
        public Builder target(LicenseTarget target) {
            return target(Either.ofRight(target));
        }

        /**
         * @param type Describes the license core type (pCore or vCore).
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Describes the license core type (pCore or vCore).
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type Describes the license core type (pCore or vCore).
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type Describes the license core type (pCore or vCore).
         * 
         * @return builder
         * 
         */
        public Builder type(LicenseCoreType type) {
            return type(Either.ofRight(type));
        }

        public LicenseDetailsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy