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

com.pulumi.azurenative.servicelinker.outputs.SystemAssignedIdentityAuthInfoResponse 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 SystemAssignedIdentityAuthInfoResponse {
    /**
     * @return The authentication type.
     * Expected value is 'systemAssignedIdentity'.
     * 
     */
    private String authType;
    /**
     * @return Indicates whether to clean up previous operation when Linker is updating or deleting
     * 
     */
    private @Nullable String deleteOrUpdateBehavior;
    /**
     * @return Optional, this value specifies the Azure role to be assigned
     * 
     */
    private @Nullable List roles;
    /**
     * @return Username created in the database which is mapped to a user in AAD.
     * 
     */
    private @Nullable String userName;

    private SystemAssignedIdentityAuthInfoResponse() {}
    /**
     * @return The authentication type.
     * Expected value is 'systemAssignedIdentity'.
     * 
     */
    public String authType() {
        return this.authType;
    }
    /**
     * @return Indicates whether to clean up previous operation when Linker is updating or deleting
     * 
     */
    public Optional deleteOrUpdateBehavior() {
        return Optional.ofNullable(this.deleteOrUpdateBehavior);
    }
    /**
     * @return Optional, this value specifies the Azure role to be assigned
     * 
     */
    public List roles() {
        return this.roles == null ? List.of() : this.roles;
    }
    /**
     * @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(SystemAssignedIdentityAuthInfoResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String authType;
        private @Nullable String deleteOrUpdateBehavior;
        private @Nullable List roles;
        private @Nullable String userName;
        public Builder() {}
        public Builder(SystemAssignedIdentityAuthInfoResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.authType = defaults.authType;
    	      this.deleteOrUpdateBehavior = defaults.deleteOrUpdateBehavior;
    	      this.roles = defaults.roles;
    	      this.userName = defaults.userName;
        }

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

            this.deleteOrUpdateBehavior = deleteOrUpdateBehavior;
            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 userName(@Nullable String userName) {

            this.userName = userName;
            return this;
        }
        public SystemAssignedIdentityAuthInfoResponse build() {
            final var _resultValue = new SystemAssignedIdentityAuthInfoResponse();
            _resultValue.authType = authType;
            _resultValue.deleteOrUpdateBehavior = deleteOrUpdateBehavior;
            _resultValue.roles = roles;
            _resultValue.userName = userName;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy