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

com.pulumi.azurenative.iotoperationsorchestrator.TargetArgs Maven / Gradle / Ivy

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


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

    public static final TargetArgs Empty = new TargetArgs();

    /**
     * A list of components.
     * 
     */
    @Import(name="components")
    private @Nullable Output> components;

    /**
     * @return A list of components.
     * 
     */
    public Optional>> components() {
        return Optional.ofNullable(this.components);
    }

    /**
     * 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 target.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of target.
     * 
     */
    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);
    }

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

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

    /**
     * Defines the device topology for a target or instance.
     * 
     */
    @Import(name="topologies")
    private @Nullable Output> topologies;

    /**
     * @return Defines the device topology for a target or instance.
     * 
     */
    public Optional>> topologies() {
        return Optional.ofNullable(this.topologies);
    }

    /**
     * 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 TargetArgs() {}

    private TargetArgs(TargetArgs $) {
        this.components = $.components;
        this.extendedLocation = $.extendedLocation;
        this.location = $.location;
        this.name = $.name;
        this.reconciliationPolicy = $.reconciliationPolicy;
        this.resourceGroupName = $.resourceGroupName;
        this.scope = $.scope;
        this.tags = $.tags;
        this.topologies = $.topologies;
        this.version = $.version;
    }

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

    public static final class Builder {
        private TargetArgs $;

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

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

        /**
         * @param components A list of components.
         * 
         * @return builder
         * 
         */
        public Builder components(@Nullable Output> components) {
            $.components = components;
            return this;
        }

        /**
         * @param components A list of components.
         * 
         * @return builder
         * 
         */
        public Builder components(List components) {
            return components(Output.of(components));
        }

        /**
         * @param components A list of components.
         * 
         * @return builder
         * 
         */
        public Builder components(ComponentPropertiesArgs... components) {
            return components(List.of(components));
        }

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

        /**
         * @param name Name of target.
         * 
         * @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 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 topologies Defines the device topology for a target or instance.
         * 
         * @return builder
         * 
         */
        public Builder topologies(@Nullable Output> topologies) {
            $.topologies = topologies;
            return this;
        }

        /**
         * @param topologies Defines the device topology for a target or instance.
         * 
         * @return builder
         * 
         */
        public Builder topologies(List topologies) {
            return topologies(Output.of(topologies));
        }

        /**
         * @param topologies Defines the device topology for a target or instance.
         * 
         * @return builder
         * 
         */
        public Builder topologies(TopologiesPropertiesArgs... topologies) {
            return topologies(List.of(topologies));
        }

        /**
         * @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 TargetArgs build() {
            if ($.extendedLocation == null) {
                throw new MissingRequiredPropertyException("TargetArgs", "extendedLocation");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("TargetArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy