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

com.pulumi.azurenative.servicelinker.outputs.ServicePrincipalSecretAuthInfoResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.servicelinker.outputs;

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

@CustomType
public final class ServicePrincipalSecretAuthInfoResponse {
    /**
     * @return The authentication type.
     * Expected value is 'servicePrincipalSecret'.
     * 
     */
    private String authType;
    /**
     * @return ServicePrincipal application clientId for servicePrincipal auth.
     * 
     */
    private String clientId;
    /**
     * @return Indicates whether to clean up previous operation when Linker is updating or deleting
     * 
     */
    private @Nullable String deleteOrUpdateBehavior;
    /**
     * @return Principal Id for servicePrincipal auth.
     * 
     */
    private String principalId;
    /**
     * @return Optional, this value specifies the Azure roles to be assigned. Automatically
     * 
     */
    private @Nullable List roles;
    /**
     * @return Secret for servicePrincipal auth.
     * 
     */
    private String secret;
    /**
     * @return Username created in the database which is mapped to a user in AAD.
     * 
     */
    private @Nullable String userName;

    private ServicePrincipalSecretAuthInfoResponse() {}
    /**
     * @return The authentication type.
     * Expected value is 'servicePrincipalSecret'.
     * 
     */
    public String authType() {
        return this.authType;
    }
    /**
     * @return ServicePrincipal application clientId for servicePrincipal auth.
     * 
     */
    public String clientId() {
        return this.clientId;
    }
    /**
     * @return Indicates whether to clean up previous operation when Linker is updating or deleting
     * 
     */
    public Optional deleteOrUpdateBehavior() {
        return Optional.ofNullable(this.deleteOrUpdateBehavior);
    }
    /**
     * @return Principal Id for servicePrincipal auth.
     * 
     */
    public String principalId() {
        return this.principalId;
    }
    /**
     * @return Optional, this value specifies the Azure roles to be assigned. Automatically
     * 
     */
    public List roles() {
        return this.roles == null ? List.of() : this.roles;
    }
    /**
     * @return Secret for servicePrincipal auth.
     * 
     */
    public String secret() {
        return this.secret;
    }
    /**
     * @return Username created in the database which is mapped to a user in AAD.
     * 
     */
    public Optional userName() {
        return Optional.ofNullable(this.userName);
    }

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

    public static Builder builder(ServicePrincipalSecretAuthInfoResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String authType;
        private String clientId;
        private @Nullable String deleteOrUpdateBehavior;
        private String principalId;
        private @Nullable List roles;
        private String secret;
        private @Nullable String userName;
        public Builder() {}
        public Builder(ServicePrincipalSecretAuthInfoResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.authType = defaults.authType;
    	      this.clientId = defaults.clientId;
    	      this.deleteOrUpdateBehavior = defaults.deleteOrUpdateBehavior;
    	      this.principalId = defaults.principalId;
    	      this.roles = defaults.roles;
    	      this.secret = defaults.secret;
    	      this.userName = defaults.userName;
        }

        @CustomType.Setter
        public Builder authType(String authType) {
            if (authType == null) {
              throw new MissingRequiredPropertyException("ServicePrincipalSecretAuthInfoResponse", "authType");
            }
            this.authType = authType;
            return this;
        }
        @CustomType.Setter
        public Builder clientId(String clientId) {
            if (clientId == null) {
              throw new MissingRequiredPropertyException("ServicePrincipalSecretAuthInfoResponse", "clientId");
            }
            this.clientId = clientId;
            return this;
        }
        @CustomType.Setter
        public Builder deleteOrUpdateBehavior(@Nullable String deleteOrUpdateBehavior) {

            this.deleteOrUpdateBehavior = deleteOrUpdateBehavior;
            return this;
        }
        @CustomType.Setter
        public Builder principalId(String principalId) {
            if (principalId == null) {
              throw new MissingRequiredPropertyException("ServicePrincipalSecretAuthInfoResponse", "principalId");
            }
            this.principalId = principalId;
            return this;
        }
        @CustomType.Setter
        public Builder roles(@Nullable List roles) {

            this.roles = roles;
            return this;
        }
        public Builder roles(String... roles) {
            return roles(List.of(roles));
        }
        @CustomType.Setter
        public Builder secret(String secret) {
            if (secret == null) {
              throw new MissingRequiredPropertyException("ServicePrincipalSecretAuthInfoResponse", "secret");
            }
            this.secret = secret;
            return this;
        }
        @CustomType.Setter
        public Builder userName(@Nullable String userName) {

            this.userName = userName;
            return this;
        }
        public ServicePrincipalSecretAuthInfoResponse build() {
            final var _resultValue = new ServicePrincipalSecretAuthInfoResponse();
            _resultValue.authType = authType;
            _resultValue.clientId = clientId;
            _resultValue.deleteOrUpdateBehavior = deleteOrUpdateBehavior;
            _resultValue.principalId = principalId;
            _resultValue.roles = roles;
            _resultValue.secret = secret;
            _resultValue.userName = userName;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy