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

com.pulumi.azure.servicefabric.ManagedClusterArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.servicefabric;

import com.pulumi.azure.servicefabric.inputs.ManagedClusterAuthenticationArgs;
import com.pulumi.azure.servicefabric.inputs.ManagedClusterCustomFabricSettingArgs;
import com.pulumi.azure.servicefabric.inputs.ManagedClusterLbRuleArgs;
import com.pulumi.azure.servicefabric.inputs.ManagedClusterNodeTypeArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
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 ManagedClusterArgs extends com.pulumi.resources.ResourceArgs {

    public static final ManagedClusterArgs Empty = new ManagedClusterArgs();

    /**
     * Controls how connections to the cluster are authenticated. A `authentication` block as defined below.
     * 
     */
    @Import(name="authentication")
    private @Nullable Output authentication;

    /**
     * @return Controls how connections to the cluster are authenticated. A `authentication` block as defined below.
     * 
     */
    public Optional> authentication() {
        return Optional.ofNullable(this.authentication);
    }

    /**
     * If true, backup service is enabled.
     * 
     */
    @Import(name="backupServiceEnabled")
    private @Nullable Output backupServiceEnabled;

    /**
     * @return If true, backup service is enabled.
     * 
     */
    public Optional> backupServiceEnabled() {
        return Optional.ofNullable(this.backupServiceEnabled);
    }

    /**
     * Port to use when connecting to the cluster.
     * 
     */
    @Import(name="clientConnectionPort", required=true)
    private Output clientConnectionPort;

    /**
     * @return Port to use when connecting to the cluster.
     * 
     */
    public Output clientConnectionPort() {
        return this.clientConnectionPort;
    }

    /**
     * One or more `custom_fabric_setting` blocks as defined below.
     * 
     */
    @Import(name="customFabricSettings")
    private @Nullable Output> customFabricSettings;

    /**
     * @return One or more `custom_fabric_setting` blocks as defined below.
     * 
     */
    public Optional>> customFabricSettings() {
        return Optional.ofNullable(this.customFabricSettings);
    }

    /**
     * Hostname for the cluster. If unset the cluster's name will be used..
     * 
     */
    @Import(name="dnsName")
    private @Nullable Output dnsName;

    /**
     * @return Hostname for the cluster. If unset the cluster's name will be used..
     * 
     */
    public Optional> dnsName() {
        return Optional.ofNullable(this.dnsName);
    }

    /**
     * If true, DNS service is enabled.
     * 
     */
    @Import(name="dnsServiceEnabled")
    private @Nullable Output dnsServiceEnabled;

    /**
     * @return If true, DNS service is enabled.
     * 
     */
    public Optional> dnsServiceEnabled() {
        return Optional.ofNullable(this.dnsServiceEnabled);
    }

    /**
     * Port that should be used by the Service Fabric Explorer to visualize applications and cluster status.
     * 
     */
    @Import(name="httpGatewayPort", required=true)
    private Output httpGatewayPort;

    /**
     * @return Port that should be used by the Service Fabric Explorer to visualize applications and cluster status.
     * 
     */
    public Output httpGatewayPort() {
        return this.httpGatewayPort;
    }

    /**
     * One or more `lb_rule` blocks as defined below.
     * 
     */
    @Import(name="lbRules", required=true)
    private Output> lbRules;

    /**
     * @return One or more `lb_rule` blocks as defined below.
     * 
     */
    public Output> lbRules() {
        return this.lbRules;
    }

    /**
     * The Azure Region where the Resource Group should exist. Changing this forces a new Resource Group to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The Azure Region where the Resource Group should exist. Changing this forces a new Resource Group to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name which should be used for this Resource Group. Changing this forces a new Resource Group to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Resource Group. Changing this forces a new Resource Group to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * One or more `node_type` blocks as defined below.
     * 
     */
    @Import(name="nodeTypes")
    private @Nullable Output> nodeTypes;

    /**
     * @return One or more `node_type` blocks as defined below.
     * 
     */
    public Optional>> nodeTypes() {
        return Optional.ofNullable(this.nodeTypes);
    }

    /**
     * Administrator password for the VMs that will be created as part of this cluster.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return Administrator password for the VMs that will be created as part of this cluster.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * The name of the Resource Group where the Resource Group should exist. Changing this forces a new Resource Group to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the Resource Group where the Resource Group should exist. Changing this forces a new Resource Group to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * SKU for this cluster. Changing this forces a new resource to be created. Default is `Basic`, allowed values are either `Basic` or `Standard`.
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return SKU for this cluster. Changing this forces a new resource to be created. Default is `Basic`, allowed values are either `Basic` or `Standard`.
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

    /**
     * A mapping of tags which should be assigned to the Resource Group.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags which should be assigned to the Resource Group.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Upgrade wave for the fabric runtime. Default is `Wave0`, allowed value must be one of `Wave0`, `Wave1`, or `Wave2`.
     * 
     */
    @Import(name="upgradeWave")
    private @Nullable Output upgradeWave;

    /**
     * @return Upgrade wave for the fabric runtime. Default is `Wave0`, allowed value must be one of `Wave0`, `Wave1`, or `Wave2`.
     * 
     */
    public Optional> upgradeWave() {
        return Optional.ofNullable(this.upgradeWave);
    }

    /**
     * Administrator password for the VMs that will be created as part of this cluster.
     * 
     */
    @Import(name="username")
    private @Nullable Output username;

    /**
     * @return Administrator password for the VMs that will be created as part of this cluster.
     * 
     */
    public Optional> username() {
        return Optional.ofNullable(this.username);
    }

    private ManagedClusterArgs() {}

    private ManagedClusterArgs(ManagedClusterArgs $) {
        this.authentication = $.authentication;
        this.backupServiceEnabled = $.backupServiceEnabled;
        this.clientConnectionPort = $.clientConnectionPort;
        this.customFabricSettings = $.customFabricSettings;
        this.dnsName = $.dnsName;
        this.dnsServiceEnabled = $.dnsServiceEnabled;
        this.httpGatewayPort = $.httpGatewayPort;
        this.lbRules = $.lbRules;
        this.location = $.location;
        this.name = $.name;
        this.nodeTypes = $.nodeTypes;
        this.password = $.password;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
        this.upgradeWave = $.upgradeWave;
        this.username = $.username;
    }

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

    public static final class Builder {
        private ManagedClusterArgs $;

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

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

        /**
         * @param authentication Controls how connections to the cluster are authenticated. A `authentication` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder authentication(@Nullable Output authentication) {
            $.authentication = authentication;
            return this;
        }

        /**
         * @param authentication Controls how connections to the cluster are authenticated. A `authentication` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder authentication(ManagedClusterAuthenticationArgs authentication) {
            return authentication(Output.of(authentication));
        }

        /**
         * @param backupServiceEnabled If true, backup service is enabled.
         * 
         * @return builder
         * 
         */
        public Builder backupServiceEnabled(@Nullable Output backupServiceEnabled) {
            $.backupServiceEnabled = backupServiceEnabled;
            return this;
        }

        /**
         * @param backupServiceEnabled If true, backup service is enabled.
         * 
         * @return builder
         * 
         */
        public Builder backupServiceEnabled(Boolean backupServiceEnabled) {
            return backupServiceEnabled(Output.of(backupServiceEnabled));
        }

        /**
         * @param clientConnectionPort Port to use when connecting to the cluster.
         * 
         * @return builder
         * 
         */
        public Builder clientConnectionPort(Output clientConnectionPort) {
            $.clientConnectionPort = clientConnectionPort;
            return this;
        }

        /**
         * @param clientConnectionPort Port to use when connecting to the cluster.
         * 
         * @return builder
         * 
         */
        public Builder clientConnectionPort(Integer clientConnectionPort) {
            return clientConnectionPort(Output.of(clientConnectionPort));
        }

        /**
         * @param customFabricSettings One or more `custom_fabric_setting` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder customFabricSettings(@Nullable Output> customFabricSettings) {
            $.customFabricSettings = customFabricSettings;
            return this;
        }

        /**
         * @param customFabricSettings One or more `custom_fabric_setting` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder customFabricSettings(List customFabricSettings) {
            return customFabricSettings(Output.of(customFabricSettings));
        }

        /**
         * @param customFabricSettings One or more `custom_fabric_setting` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder customFabricSettings(ManagedClusterCustomFabricSettingArgs... customFabricSettings) {
            return customFabricSettings(List.of(customFabricSettings));
        }

        /**
         * @param dnsName Hostname for the cluster. If unset the cluster's name will be used..
         * 
         * @return builder
         * 
         */
        public Builder dnsName(@Nullable Output dnsName) {
            $.dnsName = dnsName;
            return this;
        }

        /**
         * @param dnsName Hostname for the cluster. If unset the cluster's name will be used..
         * 
         * @return builder
         * 
         */
        public Builder dnsName(String dnsName) {
            return dnsName(Output.of(dnsName));
        }

        /**
         * @param dnsServiceEnabled If true, DNS service is enabled.
         * 
         * @return builder
         * 
         */
        public Builder dnsServiceEnabled(@Nullable Output dnsServiceEnabled) {
            $.dnsServiceEnabled = dnsServiceEnabled;
            return this;
        }

        /**
         * @param dnsServiceEnabled If true, DNS service is enabled.
         * 
         * @return builder
         * 
         */
        public Builder dnsServiceEnabled(Boolean dnsServiceEnabled) {
            return dnsServiceEnabled(Output.of(dnsServiceEnabled));
        }

        /**
         * @param httpGatewayPort Port that should be used by the Service Fabric Explorer to visualize applications and cluster status.
         * 
         * @return builder
         * 
         */
        public Builder httpGatewayPort(Output httpGatewayPort) {
            $.httpGatewayPort = httpGatewayPort;
            return this;
        }

        /**
         * @param httpGatewayPort Port that should be used by the Service Fabric Explorer to visualize applications and cluster status.
         * 
         * @return builder
         * 
         */
        public Builder httpGatewayPort(Integer httpGatewayPort) {
            return httpGatewayPort(Output.of(httpGatewayPort));
        }

        /**
         * @param lbRules One or more `lb_rule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder lbRules(Output> lbRules) {
            $.lbRules = lbRules;
            return this;
        }

        /**
         * @param lbRules One or more `lb_rule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder lbRules(List lbRules) {
            return lbRules(Output.of(lbRules));
        }

        /**
         * @param lbRules One or more `lb_rule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder lbRules(ManagedClusterLbRuleArgs... lbRules) {
            return lbRules(List.of(lbRules));
        }

        /**
         * @param location The Azure Region where the Resource Group should exist. Changing this forces a new Resource Group to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The Azure Region where the Resource Group should exist. Changing this forces a new Resource Group to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name The name which should be used for this Resource Group. Changing this forces a new Resource Group to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Resource Group. Changing this forces a new Resource Group to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param nodeTypes One or more `node_type` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder nodeTypes(@Nullable Output> nodeTypes) {
            $.nodeTypes = nodeTypes;
            return this;
        }

        /**
         * @param nodeTypes One or more `node_type` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder nodeTypes(List nodeTypes) {
            return nodeTypes(Output.of(nodeTypes));
        }

        /**
         * @param nodeTypes One or more `node_type` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder nodeTypes(ManagedClusterNodeTypeArgs... nodeTypes) {
            return nodeTypes(List.of(nodeTypes));
        }

        /**
         * @param password Administrator password for the VMs that will be created as part of this cluster.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password Administrator password for the VMs that will be created as part of this cluster.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param resourceGroupName The name of the Resource Group where the Resource Group should exist. Changing this forces a new Resource Group to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Resource Group where the Resource Group should exist. Changing this forces a new Resource Group to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param sku SKU for this cluster. Changing this forces a new resource to be created. Default is `Basic`, allowed values are either `Basic` or `Standard`.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku SKU for this cluster. Changing this forces a new resource to be created. Default is `Basic`, allowed values are either `Basic` or `Standard`.
         * 
         * @return builder
         * 
         */
        public Builder sku(String sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Resource Group.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Resource Group.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param upgradeWave Upgrade wave for the fabric runtime. Default is `Wave0`, allowed value must be one of `Wave0`, `Wave1`, or `Wave2`.
         * 
         * @return builder
         * 
         */
        public Builder upgradeWave(@Nullable Output upgradeWave) {
            $.upgradeWave = upgradeWave;
            return this;
        }

        /**
         * @param upgradeWave Upgrade wave for the fabric runtime. Default is `Wave0`, allowed value must be one of `Wave0`, `Wave1`, or `Wave2`.
         * 
         * @return builder
         * 
         */
        public Builder upgradeWave(String upgradeWave) {
            return upgradeWave(Output.of(upgradeWave));
        }

        /**
         * @param username Administrator password for the VMs that will be created as part of this cluster.
         * 
         * @return builder
         * 
         */
        public Builder username(@Nullable Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username Administrator password for the VMs that will be created as part of this cluster.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public ManagedClusterArgs build() {
            if ($.clientConnectionPort == null) {
                throw new MissingRequiredPropertyException("ManagedClusterArgs", "clientConnectionPort");
            }
            if ($.httpGatewayPort == null) {
                throw new MissingRequiredPropertyException("ManagedClusterArgs", "httpGatewayPort");
            }
            if ($.lbRules == null) {
                throw new MissingRequiredPropertyException("ManagedClusterArgs", "lbRules");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ManagedClusterArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy