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

com.pulumi.azurenative.servicefabric.ManagedClusterServiceArgs Maven / Gradle / Ivy

// *** 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.servicefabric;

import com.pulumi.azurenative.servicefabric.inputs.StatefulServicePropertiesArgs;
import com.pulumi.azurenative.servicefabric.inputs.StatelessServicePropertiesArgs;
import com.pulumi.core.Either;
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 ManagedClusterServiceArgs extends com.pulumi.resources.ResourceArgs {

    public static final ManagedClusterServiceArgs Empty = new ManagedClusterServiceArgs();

    /**
     * The name of the application resource.
     * 
     */
    @Import(name="applicationName", required=true)
    private Output applicationName;

    /**
     * @return The name of the application resource.
     * 
     */
    public Output applicationName() {
        return this.applicationName;
    }

    /**
     * The name of the cluster resource.
     * 
     */
    @Import(name="clusterName", required=true)
    private Output clusterName;

    /**
     * @return The name of the cluster resource.
     * 
     */
    public Output clusterName() {
        return this.clusterName;
    }

    /**
     * Resource location depends on the parent resource.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location depends on the parent resource.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The service resource properties.
     * 
     */
    @Import(name="properties")
    private @Nullable Output> properties;

    /**
     * @return The service resource properties.
     * 
     */
    public Optional>> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the service resource in the format of {applicationName}~{serviceName}.
     * 
     */
    @Import(name="serviceName")
    private @Nullable Output serviceName;

    /**
     * @return The name of the service resource in the format of {applicationName}~{serviceName}.
     * 
     */
    public Optional> serviceName() {
        return Optional.ofNullable(this.serviceName);
    }

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

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

    private ManagedClusterServiceArgs() {}

    private ManagedClusterServiceArgs(ManagedClusterServiceArgs $) {
        this.applicationName = $.applicationName;
        this.clusterName = $.clusterName;
        this.location = $.location;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.serviceName = $.serviceName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ManagedClusterServiceArgs $;

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

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

        /**
         * @param applicationName The name of the application resource.
         * 
         * @return builder
         * 
         */
        public Builder applicationName(Output applicationName) {
            $.applicationName = applicationName;
            return this;
        }

        /**
         * @param applicationName The name of the application resource.
         * 
         * @return builder
         * 
         */
        public Builder applicationName(String applicationName) {
            return applicationName(Output.of(applicationName));
        }

        /**
         * @param clusterName The name of the cluster resource.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(Output clusterName) {
            $.clusterName = clusterName;
            return this;
        }

        /**
         * @param clusterName The name of the cluster resource.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(String clusterName) {
            return clusterName(Output.of(clusterName));
        }

        /**
         * @param location Resource location depends on the parent resource.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location depends on the parent resource.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param properties The service resource properties.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output> properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties The service resource properties.
         * 
         * @return builder
         * 
         */
        public Builder properties(Either properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param properties The service resource properties.
         * 
         * @return builder
         * 
         */
        public Builder properties(StatefulServicePropertiesArgs properties) {
            return properties(Either.ofLeft(properties));
        }

        /**
         * @param properties The service resource properties.
         * 
         * @return builder
         * 
         */
        public Builder properties(StatelessServicePropertiesArgs properties) {
            return properties(Either.ofRight(properties));
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(@Nullable Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param tags Azure resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Azure resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public ManagedClusterServiceArgs build() {
            if ($.applicationName == null) {
                throw new MissingRequiredPropertyException("ManagedClusterServiceArgs", "applicationName");
            }
            if ($.clusterName == null) {
                throw new MissingRequiredPropertyException("ManagedClusterServiceArgs", "clusterName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ManagedClusterServiceArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy