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

com.pulumi.azurenative.security.inputs.ServicePrincipalPropertiesArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.security.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Details of the service principal.
 * 
 */
public final class ServicePrincipalPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServicePrincipalPropertiesArgs Empty = new ServicePrincipalPropertiesArgs();

    /**
     * Application ID of service principal.
     * 
     */
    @Import(name="applicationId")
    private @Nullable Output applicationId;

    /**
     * @return Application ID of service principal.
     * 
     */
    public Optional> applicationId() {
        return Optional.ofNullable(this.applicationId);
    }

    /**
     * A secret string that the application uses to prove its identity, also can be referred to as application password (write only).
     * 
     */
    @Import(name="secret")
    private @Nullable Output secret;

    /**
     * @return A secret string that the application uses to prove its identity, also can be referred to as application password (write only).
     * 
     */
    public Optional> secret() {
        return Optional.ofNullable(this.secret);
    }

    private ServicePrincipalPropertiesArgs() {}

    private ServicePrincipalPropertiesArgs(ServicePrincipalPropertiesArgs $) {
        this.applicationId = $.applicationId;
        this.secret = $.secret;
    }

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

    public static final class Builder {
        private ServicePrincipalPropertiesArgs $;

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

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

        /**
         * @param applicationId Application ID of service principal.
         * 
         * @return builder
         * 
         */
        public Builder applicationId(@Nullable Output applicationId) {
            $.applicationId = applicationId;
            return this;
        }

        /**
         * @param applicationId Application ID of service principal.
         * 
         * @return builder
         * 
         */
        public Builder applicationId(String applicationId) {
            return applicationId(Output.of(applicationId));
        }

        /**
         * @param secret A secret string that the application uses to prove its identity, also can be referred to as application password (write only).
         * 
         * @return builder
         * 
         */
        public Builder secret(@Nullable Output secret) {
            $.secret = secret;
            return this;
        }

        /**
         * @param secret A secret string that the application uses to prove its identity, also can be referred to as application password (write only).
         * 
         * @return builder
         * 
         */
        public Builder secret(String secret) {
            return secret(Output.of(secret));
        }

        public ServicePrincipalPropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy