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

com.pulumi.azurenative.machinelearningservices.inputs.ServicePrincipalDatastoreCredentialsArgs 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.machinelearningservices.inputs;

import com.pulumi.azurenative.machinelearningservices.inputs.ServicePrincipalDatastoreSecretsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Service Principal datastore credentials configuration.
 * 
 */
public final class ServicePrincipalDatastoreCredentialsArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServicePrincipalDatastoreCredentialsArgs Empty = new ServicePrincipalDatastoreCredentialsArgs();

    /**
     * Authority URL used for authentication.
     * 
     */
    @Import(name="authorityUrl")
    private @Nullable Output authorityUrl;

    /**
     * @return Authority URL used for authentication.
     * 
     */
    public Optional> authorityUrl() {
        return Optional.ofNullable(this.authorityUrl);
    }

    /**
     * [Required] Service principal client ID.
     * 
     */
    @Import(name="clientId", required=true)
    private Output clientId;

    /**
     * @return [Required] Service principal client ID.
     * 
     */
    public Output clientId() {
        return this.clientId;
    }

    /**
     * Enum to determine the datastore credentials type.
     * Expected value is 'ServicePrincipal'.
     * 
     */
    @Import(name="credentialsType", required=true)
    private Output credentialsType;

    /**
     * @return Enum to determine the datastore credentials type.
     * Expected value is 'ServicePrincipal'.
     * 
     */
    public Output credentialsType() {
        return this.credentialsType;
    }

    /**
     * Resource the service principal has access to.
     * 
     */
    @Import(name="resourceUrl")
    private @Nullable Output resourceUrl;

    /**
     * @return Resource the service principal has access to.
     * 
     */
    public Optional> resourceUrl() {
        return Optional.ofNullable(this.resourceUrl);
    }

    /**
     * [Required] Service principal secrets.
     * 
     */
    @Import(name="secrets", required=true)
    private Output secrets;

    /**
     * @return [Required] Service principal secrets.
     * 
     */
    public Output secrets() {
        return this.secrets;
    }

    /**
     * [Required] ID of the tenant to which the service principal belongs.
     * 
     */
    @Import(name="tenantId", required=true)
    private Output tenantId;

    /**
     * @return [Required] ID of the tenant to which the service principal belongs.
     * 
     */
    public Output tenantId() {
        return this.tenantId;
    }

    private ServicePrincipalDatastoreCredentialsArgs() {}

    private ServicePrincipalDatastoreCredentialsArgs(ServicePrincipalDatastoreCredentialsArgs $) {
        this.authorityUrl = $.authorityUrl;
        this.clientId = $.clientId;
        this.credentialsType = $.credentialsType;
        this.resourceUrl = $.resourceUrl;
        this.secrets = $.secrets;
        this.tenantId = $.tenantId;
    }

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

    public static final class Builder {
        private ServicePrincipalDatastoreCredentialsArgs $;

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

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

        /**
         * @param authorityUrl Authority URL used for authentication.
         * 
         * @return builder
         * 
         */
        public Builder authorityUrl(@Nullable Output authorityUrl) {
            $.authorityUrl = authorityUrl;
            return this;
        }

        /**
         * @param authorityUrl Authority URL used for authentication.
         * 
         * @return builder
         * 
         */
        public Builder authorityUrl(String authorityUrl) {
            return authorityUrl(Output.of(authorityUrl));
        }

        /**
         * @param clientId [Required] Service principal client ID.
         * 
         * @return builder
         * 
         */
        public Builder clientId(Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId [Required] Service principal client ID.
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param credentialsType Enum to determine the datastore credentials type.
         * Expected value is 'ServicePrincipal'.
         * 
         * @return builder
         * 
         */
        public Builder credentialsType(Output credentialsType) {
            $.credentialsType = credentialsType;
            return this;
        }

        /**
         * @param credentialsType Enum to determine the datastore credentials type.
         * Expected value is 'ServicePrincipal'.
         * 
         * @return builder
         * 
         */
        public Builder credentialsType(String credentialsType) {
            return credentialsType(Output.of(credentialsType));
        }

        /**
         * @param resourceUrl Resource the service principal has access to.
         * 
         * @return builder
         * 
         */
        public Builder resourceUrl(@Nullable Output resourceUrl) {
            $.resourceUrl = resourceUrl;
            return this;
        }

        /**
         * @param resourceUrl Resource the service principal has access to.
         * 
         * @return builder
         * 
         */
        public Builder resourceUrl(String resourceUrl) {
            return resourceUrl(Output.of(resourceUrl));
        }

        /**
         * @param secrets [Required] Service principal secrets.
         * 
         * @return builder
         * 
         */
        public Builder secrets(Output secrets) {
            $.secrets = secrets;
            return this;
        }

        /**
         * @param secrets [Required] Service principal secrets.
         * 
         * @return builder
         * 
         */
        public Builder secrets(ServicePrincipalDatastoreSecretsArgs secrets) {
            return secrets(Output.of(secrets));
        }

        /**
         * @param tenantId [Required] ID of the tenant to which the service principal belongs.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(Output tenantId) {
            $.tenantId = tenantId;
            return this;
        }

        /**
         * @param tenantId [Required] ID of the tenant to which the service principal belongs.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(String tenantId) {
            return tenantId(Output.of(tenantId));
        }

        public ServicePrincipalDatastoreCredentialsArgs build() {
            if ($.clientId == null) {
                throw new MissingRequiredPropertyException("ServicePrincipalDatastoreCredentialsArgs", "clientId");
            }
            $.credentialsType = Codegen.stringProp("credentialsType").output().arg($.credentialsType).require();
            if ($.secrets == null) {
                throw new MissingRequiredPropertyException("ServicePrincipalDatastoreCredentialsArgs", "secrets");
            }
            if ($.tenantId == null) {
                throw new MissingRequiredPropertyException("ServicePrincipalDatastoreCredentialsArgs", "tenantId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy