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

com.pulumi.azurenative.iotoperationsorchestrator.InstanceArgs 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.iotoperationsorchestrator;

import com.pulumi.azurenative.iotoperationsorchestrator.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.iotoperationsorchestrator.inputs.ReconciliationPolicyArgs;
import com.pulumi.azurenative.iotoperationsorchestrator.inputs.TargetSelectorPropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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;


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

    public static final InstanceArgs Empty = new InstanceArgs();

    /**
     * Edge location of the resource.
     * 
     */
    @Import(name="extendedLocation", required=true)
    private Output extendedLocation;

    /**
     * @return Edge location of the resource.
     * 
     */
    public Output extendedLocation() {
        return this.extendedLocation;
    }

    /**
     * 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);
    }

    /**
     * Name of Instance.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of Instance.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Reconciliation Policy.
     * 
     */
    @Import(name="reconciliationPolicy")
    private @Nullable Output reconciliationPolicy;

    /**
     * @return Reconciliation Policy.
     * 
     */
    public Optional> reconciliationPolicy() {
        return Optional.ofNullable(this.reconciliationPolicy);
    }

    /**
     * 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;
    }

    /**
     * Deployment scope (such as Kubernetes namespace).
     * 
     */
    @Import(name="scope")
    private @Nullable Output scope;

    /**
     * @return Deployment scope (such as Kubernetes namespace).
     * 
     */
    public Optional> scope() {
        return Optional.ofNullable(this.scope);
    }

    /**
     * Name of the solution.
     * 
     */
    @Import(name="solution")
    private @Nullable Output solution;

    /**
     * @return Name of the solution.
     * 
     */
    public Optional> solution() {
        return Optional.ofNullable(this.solution);
    }

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

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

    /**
     * Defines the Target the Instance will deploy to.
     * 
     */
    @Import(name="target")
    private @Nullable Output target;

    /**
     * @return Defines the Target the Instance will deploy to.
     * 
     */
    public Optional> target() {
        return Optional.ofNullable(this.target);
    }

    /**
     * Version of the particular resource.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Version of the particular resource.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private InstanceArgs() {}

    private InstanceArgs(InstanceArgs $) {
        this.extendedLocation = $.extendedLocation;
        this.location = $.location;
        this.name = $.name;
        this.reconciliationPolicy = $.reconciliationPolicy;
        this.resourceGroupName = $.resourceGroupName;
        this.scope = $.scope;
        this.solution = $.solution;
        this.tags = $.tags;
        this.target = $.target;
        this.version = $.version;
    }

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

    public static final class Builder {
        private InstanceArgs $;

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

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

        /**
         * @param extendedLocation Edge location of the resource.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(Output extendedLocation) {
            $.extendedLocation = extendedLocation;
            return this;
        }

        /**
         * @param extendedLocation Edge location of the resource.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(ExtendedLocationArgs extendedLocation) {
            return extendedLocation(Output.of(extendedLocation));
        }

        /**
         * @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 name Name of Instance.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of Instance.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param reconciliationPolicy Reconciliation Policy.
         * 
         * @return builder
         * 
         */
        public Builder reconciliationPolicy(@Nullable Output reconciliationPolicy) {
            $.reconciliationPolicy = reconciliationPolicy;
            return this;
        }

        /**
         * @param reconciliationPolicy Reconciliation Policy.
         * 
         * @return builder
         * 
         */
        public Builder reconciliationPolicy(ReconciliationPolicyArgs reconciliationPolicy) {
            return reconciliationPolicy(Output.of(reconciliationPolicy));
        }

        /**
         * @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 scope Deployment scope (such as Kubernetes namespace).
         * 
         * @return builder
         * 
         */
        public Builder scope(@Nullable Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope Deployment scope (such as Kubernetes namespace).
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

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

        /**
         * @param solution Name of the solution.
         * 
         * @return builder
         * 
         */
        public Builder solution(String solution) {
            return solution(Output.of(solution));
        }

        /**
         * @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 target Defines the Target the Instance will deploy to.
         * 
         * @return builder
         * 
         */
        public Builder target(@Nullable Output target) {
            $.target = target;
            return this;
        }

        /**
         * @param target Defines the Target the Instance will deploy to.
         * 
         * @return builder
         * 
         */
        public Builder target(TargetSelectorPropertiesArgs target) {
            return target(Output.of(target));
        }

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

        /**
         * @param version Version of the particular resource.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public InstanceArgs build() {
            if ($.extendedLocation == null) {
                throw new MissingRequiredPropertyException("InstanceArgs", "extendedLocation");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("InstanceArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy