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

com.pulumi.azurenative.redhatopenshift.OpenShiftClusterArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.redhatopenshift;

import com.pulumi.azurenative.redhatopenshift.inputs.APIServerProfileArgs;
import com.pulumi.azurenative.redhatopenshift.inputs.ClusterProfileArgs;
import com.pulumi.azurenative.redhatopenshift.inputs.ConsoleProfileArgs;
import com.pulumi.azurenative.redhatopenshift.inputs.IngressProfileArgs;
import com.pulumi.azurenative.redhatopenshift.inputs.MasterProfileArgs;
import com.pulumi.azurenative.redhatopenshift.inputs.NetworkProfileArgs;
import com.pulumi.azurenative.redhatopenshift.inputs.ServicePrincipalProfileArgs;
import com.pulumi.azurenative.redhatopenshift.inputs.WorkerProfileArgs;
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 OpenShiftClusterArgs extends com.pulumi.resources.ResourceArgs {

    public static final OpenShiftClusterArgs Empty = new OpenShiftClusterArgs();

    /**
     * The cluster API server profile.
     * 
     */
    @Import(name="apiserverProfile")
    private @Nullable Output apiserverProfile;

    /**
     * @return The cluster API server profile.
     * 
     */
    public Optional> apiserverProfile() {
        return Optional.ofNullable(this.apiserverProfile);
    }

    /**
     * The cluster profile.
     * 
     */
    @Import(name="clusterProfile")
    private @Nullable Output clusterProfile;

    /**
     * @return The cluster profile.
     * 
     */
    public Optional> clusterProfile() {
        return Optional.ofNullable(this.clusterProfile);
    }

    /**
     * The console profile.
     * 
     */
    @Import(name="consoleProfile")
    private @Nullable Output consoleProfile;

    /**
     * @return The console profile.
     * 
     */
    public Optional> consoleProfile() {
        return Optional.ofNullable(this.consoleProfile);
    }

    /**
     * The cluster ingress profiles.
     * 
     */
    @Import(name="ingressProfiles")
    private @Nullable Output> ingressProfiles;

    /**
     * @return The cluster ingress profiles.
     * 
     */
    public Optional>> ingressProfiles() {
        return Optional.ofNullable(this.ingressProfiles);
    }

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

    /**
     * The cluster master profile.
     * 
     */
    @Import(name="masterProfile")
    private @Nullable Output masterProfile;

    /**
     * @return The cluster master profile.
     * 
     */
    public Optional> masterProfile() {
        return Optional.ofNullable(this.masterProfile);
    }

    /**
     * The cluster network profile.
     * 
     */
    @Import(name="networkProfile")
    private @Nullable Output networkProfile;

    /**
     * @return The cluster network profile.
     * 
     */
    public Optional> networkProfile() {
        return Optional.ofNullable(this.networkProfile);
    }

    /**
     * The cluster provisioning state.
     * 
     */
    @Import(name="provisioningState")
    private @Nullable Output provisioningState;

    /**
     * @return The cluster provisioning state.
     * 
     */
    public Optional> provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }

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

    /**
     * The name of the OpenShift cluster resource.
     * 
     */
    @Import(name="resourceName")
    private @Nullable Output resourceName;

    /**
     * @return The name of the OpenShift cluster resource.
     * 
     */
    public Optional> resourceName() {
        return Optional.ofNullable(this.resourceName);
    }

    /**
     * The cluster service principal profile.
     * 
     */
    @Import(name="servicePrincipalProfile")
    private @Nullable Output servicePrincipalProfile;

    /**
     * @return The cluster service principal profile.
     * 
     */
    public Optional> servicePrincipalProfile() {
        return Optional.ofNullable(this.servicePrincipalProfile);
    }

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

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

    /**
     * The cluster worker profiles.
     * 
     */
    @Import(name="workerProfiles")
    private @Nullable Output> workerProfiles;

    /**
     * @return The cluster worker profiles.
     * 
     */
    public Optional>> workerProfiles() {
        return Optional.ofNullable(this.workerProfiles);
    }

    private OpenShiftClusterArgs() {}

    private OpenShiftClusterArgs(OpenShiftClusterArgs $) {
        this.apiserverProfile = $.apiserverProfile;
        this.clusterProfile = $.clusterProfile;
        this.consoleProfile = $.consoleProfile;
        this.ingressProfiles = $.ingressProfiles;
        this.location = $.location;
        this.masterProfile = $.masterProfile;
        this.networkProfile = $.networkProfile;
        this.provisioningState = $.provisioningState;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceName = $.resourceName;
        this.servicePrincipalProfile = $.servicePrincipalProfile;
        this.tags = $.tags;
        this.workerProfiles = $.workerProfiles;
    }

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

    public static final class Builder {
        private OpenShiftClusterArgs $;

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

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

        /**
         * @param apiserverProfile The cluster API server profile.
         * 
         * @return builder
         * 
         */
        public Builder apiserverProfile(@Nullable Output apiserverProfile) {
            $.apiserverProfile = apiserverProfile;
            return this;
        }

        /**
         * @param apiserverProfile The cluster API server profile.
         * 
         * @return builder
         * 
         */
        public Builder apiserverProfile(APIServerProfileArgs apiserverProfile) {
            return apiserverProfile(Output.of(apiserverProfile));
        }

        /**
         * @param clusterProfile The cluster profile.
         * 
         * @return builder
         * 
         */
        public Builder clusterProfile(@Nullable Output clusterProfile) {
            $.clusterProfile = clusterProfile;
            return this;
        }

        /**
         * @param clusterProfile The cluster profile.
         * 
         * @return builder
         * 
         */
        public Builder clusterProfile(ClusterProfileArgs clusterProfile) {
            return clusterProfile(Output.of(clusterProfile));
        }

        /**
         * @param consoleProfile The console profile.
         * 
         * @return builder
         * 
         */
        public Builder consoleProfile(@Nullable Output consoleProfile) {
            $.consoleProfile = consoleProfile;
            return this;
        }

        /**
         * @param consoleProfile The console profile.
         * 
         * @return builder
         * 
         */
        public Builder consoleProfile(ConsoleProfileArgs consoleProfile) {
            return consoleProfile(Output.of(consoleProfile));
        }

        /**
         * @param ingressProfiles The cluster ingress profiles.
         * 
         * @return builder
         * 
         */
        public Builder ingressProfiles(@Nullable Output> ingressProfiles) {
            $.ingressProfiles = ingressProfiles;
            return this;
        }

        /**
         * @param ingressProfiles The cluster ingress profiles.
         * 
         * @return builder
         * 
         */
        public Builder ingressProfiles(List ingressProfiles) {
            return ingressProfiles(Output.of(ingressProfiles));
        }

        /**
         * @param ingressProfiles The cluster ingress profiles.
         * 
         * @return builder
         * 
         */
        public Builder ingressProfiles(IngressProfileArgs... ingressProfiles) {
            return ingressProfiles(List.of(ingressProfiles));
        }

        /**
         * @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 masterProfile The cluster master profile.
         * 
         * @return builder
         * 
         */
        public Builder masterProfile(@Nullable Output masterProfile) {
            $.masterProfile = masterProfile;
            return this;
        }

        /**
         * @param masterProfile The cluster master profile.
         * 
         * @return builder
         * 
         */
        public Builder masterProfile(MasterProfileArgs masterProfile) {
            return masterProfile(Output.of(masterProfile));
        }

        /**
         * @param networkProfile The cluster network profile.
         * 
         * @return builder
         * 
         */
        public Builder networkProfile(@Nullable Output networkProfile) {
            $.networkProfile = networkProfile;
            return this;
        }

        /**
         * @param networkProfile The cluster network profile.
         * 
         * @return builder
         * 
         */
        public Builder networkProfile(NetworkProfileArgs networkProfile) {
            return networkProfile(Output.of(networkProfile));
        }

        /**
         * @param provisioningState The cluster provisioning state.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(@Nullable Output provisioningState) {
            $.provisioningState = provisioningState;
            return this;
        }

        /**
         * @param provisioningState The cluster provisioning state.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(String provisioningState) {
            return provisioningState(Output.of(provisioningState));
        }

        /**
         * @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 resourceName The name of the OpenShift cluster resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceName(@Nullable Output resourceName) {
            $.resourceName = resourceName;
            return this;
        }

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

        /**
         * @param servicePrincipalProfile The cluster service principal profile.
         * 
         * @return builder
         * 
         */
        public Builder servicePrincipalProfile(@Nullable Output servicePrincipalProfile) {
            $.servicePrincipalProfile = servicePrincipalProfile;
            return this;
        }

        /**
         * @param servicePrincipalProfile The cluster service principal profile.
         * 
         * @return builder
         * 
         */
        public Builder servicePrincipalProfile(ServicePrincipalProfileArgs servicePrincipalProfile) {
            return servicePrincipalProfile(Output.of(servicePrincipalProfile));
        }

        /**
         * @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 workerProfiles The cluster worker profiles.
         * 
         * @return builder
         * 
         */
        public Builder workerProfiles(@Nullable Output> workerProfiles) {
            $.workerProfiles = workerProfiles;
            return this;
        }

        /**
         * @param workerProfiles The cluster worker profiles.
         * 
         * @return builder
         * 
         */
        public Builder workerProfiles(List workerProfiles) {
            return workerProfiles(Output.of(workerProfiles));
        }

        /**
         * @param workerProfiles The cluster worker profiles.
         * 
         * @return builder
         * 
         */
        public Builder workerProfiles(WorkerProfileArgs... workerProfiles) {
            return workerProfiles(List.of(workerProfiles));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy