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

com.pulumi.azurenative.machinelearningservices.outputs.ServicePrincipalDatastoreCredentialsResponse 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.machinelearningservices.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ServicePrincipalDatastoreCredentialsResponse {
    /**
     * @return Authority URL used for authentication.
     * 
     */
    private @Nullable String authorityUrl;
    /**
     * @return [Required] Service principal client ID.
     * 
     */
    private String clientId;
    /**
     * @return Enum to determine the datastore credentials type.
     * Expected value is 'ServicePrincipal'.
     * 
     */
    private String credentialsType;
    /**
     * @return Resource the service principal has access to.
     * 
     */
    private @Nullable String resourceUrl;
    /**
     * @return [Required] ID of the tenant to which the service principal belongs.
     * 
     */
    private String tenantId;

    private ServicePrincipalDatastoreCredentialsResponse() {}
    /**
     * @return Authority URL used for authentication.
     * 
     */
    public Optional authorityUrl() {
        return Optional.ofNullable(this.authorityUrl);
    }
    /**
     * @return [Required] Service principal client ID.
     * 
     */
    public String clientId() {
        return this.clientId;
    }
    /**
     * @return Enum to determine the datastore credentials type.
     * Expected value is 'ServicePrincipal'.
     * 
     */
    public String credentialsType() {
        return this.credentialsType;
    }
    /**
     * @return Resource the service principal has access to.
     * 
     */
    public Optional resourceUrl() {
        return Optional.ofNullable(this.resourceUrl);
    }
    /**
     * @return [Required] ID of the tenant to which the service principal belongs.
     * 
     */
    public String tenantId() {
        return this.tenantId;
    }

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

    public static Builder builder(ServicePrincipalDatastoreCredentialsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String authorityUrl;
        private String clientId;
        private String credentialsType;
        private @Nullable String resourceUrl;
        private String tenantId;
        public Builder() {}
        public Builder(ServicePrincipalDatastoreCredentialsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.authorityUrl = defaults.authorityUrl;
    	      this.clientId = defaults.clientId;
    	      this.credentialsType = defaults.credentialsType;
    	      this.resourceUrl = defaults.resourceUrl;
    	      this.tenantId = defaults.tenantId;
        }

        @CustomType.Setter
        public Builder authorityUrl(@Nullable String authorityUrl) {

            this.authorityUrl = authorityUrl;
            return this;
        }
        @CustomType.Setter
        public Builder clientId(String clientId) {
            if (clientId == null) {
              throw new MissingRequiredPropertyException("ServicePrincipalDatastoreCredentialsResponse", "clientId");
            }
            this.clientId = clientId;
            return this;
        }
        @CustomType.Setter
        public Builder credentialsType(String credentialsType) {
            if (credentialsType == null) {
              throw new MissingRequiredPropertyException("ServicePrincipalDatastoreCredentialsResponse", "credentialsType");
            }
            this.credentialsType = credentialsType;
            return this;
        }
        @CustomType.Setter
        public Builder resourceUrl(@Nullable String resourceUrl) {

            this.resourceUrl = resourceUrl;
            return this;
        }
        @CustomType.Setter
        public Builder tenantId(String tenantId) {
            if (tenantId == null) {
              throw new MissingRequiredPropertyException("ServicePrincipalDatastoreCredentialsResponse", "tenantId");
            }
            this.tenantId = tenantId;
            return this;
        }
        public ServicePrincipalDatastoreCredentialsResponse build() {
            final var _resultValue = new ServicePrincipalDatastoreCredentialsResponse();
            _resultValue.authorityUrl = authorityUrl;
            _resultValue.clientId = clientId;
            _resultValue.credentialsType = credentialsType;
            _resultValue.resourceUrl = resourceUrl;
            _resultValue.tenantId = tenantId;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy