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

com.pulumi.azure.redhatopenshift.outputs.ClusterServicePrincipal 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.redhatopenshift.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class ClusterServicePrincipal {
    /**
     * @return The Client ID for the Service Principal.
     * 
     */
    private String clientId;
    /**
     * @return The Client Secret for the Service Principal.
     * 
     * > **Note:** Currently a service principal cannot be associated with more than one ARO clusters on the Azure subscription.
     * 
     */
    private String clientSecret;

    private ClusterServicePrincipal() {}
    /**
     * @return The Client ID for the Service Principal.
     * 
     */
    public String clientId() {
        return this.clientId;
    }
    /**
     * @return The Client Secret for the Service Principal.
     * 
     * > **Note:** Currently a service principal cannot be associated with more than one ARO clusters on the Azure subscription.
     * 
     */
    public String clientSecret() {
        return this.clientSecret;
    }

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

    public static Builder builder(ClusterServicePrincipal defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String clientId;
        private String clientSecret;
        public Builder() {}
        public Builder(ClusterServicePrincipal defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.clientId = defaults.clientId;
    	      this.clientSecret = defaults.clientSecret;
        }

        @CustomType.Setter
        public Builder clientId(String clientId) {
            if (clientId == null) {
              throw new MissingRequiredPropertyException("ClusterServicePrincipal", "clientId");
            }
            this.clientId = clientId;
            return this;
        }
        @CustomType.Setter
        public Builder clientSecret(String clientSecret) {
            if (clientSecret == null) {
              throw new MissingRequiredPropertyException("ClusterServicePrincipal", "clientSecret");
            }
            this.clientSecret = clientSecret;
            return this;
        }
        public ClusterServicePrincipal build() {
            final var _resultValue = new ClusterServicePrincipal();
            _resultValue.clientId = clientId;
            _resultValue.clientSecret = clientSecret;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy