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

com.pulumi.azurenative.mobilenetwork.inputs.InstallationArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.mobilenetwork.inputs;

import com.pulumi.azurenative.mobilenetwork.enums.DesiredInstallationState;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The installation state of the packet core.
 * 
 */
public final class InstallationArgs extends com.pulumi.resources.ResourceArgs {

    public static final InstallationArgs Empty = new InstallationArgs();

    /**
     * The desired installation state
     * 
     */
    @Import(name="desiredState")
    private @Nullable Output> desiredState;

    /**
     * @return The desired installation state
     * 
     */
    public Optional>> desiredState() {
        return Optional.ofNullable(this.desiredState);
    }

    private InstallationArgs() {}

    private InstallationArgs(InstallationArgs $) {
        this.desiredState = $.desiredState;
    }

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

    public static final class Builder {
        private InstallationArgs $;

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

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

        /**
         * @param desiredState The desired installation state
         * 
         * @return builder
         * 
         */
        public Builder desiredState(@Nullable Output> desiredState) {
            $.desiredState = desiredState;
            return this;
        }

        /**
         * @param desiredState The desired installation state
         * 
         * @return builder
         * 
         */
        public Builder desiredState(Either desiredState) {
            return desiredState(Output.of(desiredState));
        }

        /**
         * @param desiredState The desired installation state
         * 
         * @return builder
         * 
         */
        public Builder desiredState(String desiredState) {
            return desiredState(Either.ofLeft(desiredState));
        }

        /**
         * @param desiredState The desired installation state
         * 
         * @return builder
         * 
         */
        public Builder desiredState(DesiredInstallationState desiredState) {
            return desiredState(Either.ofRight(desiredState));
        }

        public InstallationArgs build() {
            $.desiredState = Codegen.stringProp("desiredState").left(DesiredInstallationState.class).output().arg($.desiredState).def("Installed").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy