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

com.pulumi.azurenative.security.inputs.AuthorizationArgs 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;


/**
 * Authorization payload.
 * 
 */
public final class AuthorizationArgs extends com.pulumi.resources.ResourceArgs {

    public static final AuthorizationArgs Empty = new AuthorizationArgs();

    /**
     * Gets or sets one-time OAuth code to exchange for refresh and access tokens.
     * 
     * Only used during PUT/PATCH operations. The secret is cleared during GET.
     * 
     */
    @Import(name="code")
    private @Nullable Output code;

    /**
     * @return Gets or sets one-time OAuth code to exchange for refresh and access tokens.
     * 
     * Only used during PUT/PATCH operations. The secret is cleared during GET.
     * 
     */
    public Optional> code() {
        return Optional.ofNullable(this.code);
    }

    private AuthorizationArgs() {}

    private AuthorizationArgs(AuthorizationArgs $) {
        this.code = $.code;
    }

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

    public static final class Builder {
        private AuthorizationArgs $;

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

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

        /**
         * @param code Gets or sets one-time OAuth code to exchange for refresh and access tokens.
         * 
         * Only used during PUT/PATCH operations. The secret is cleared during GET.
         * 
         * @return builder
         * 
         */
        public Builder code(@Nullable Output code) {
            $.code = code;
            return this;
        }

        /**
         * @param code Gets or sets one-time OAuth code to exchange for refresh and access tokens.
         * 
         * Only used during PUT/PATCH operations. The secret is cleared during GET.
         * 
         * @return builder
         * 
         */
        public Builder code(String code) {
            return code(Output.of(code));
        }

        public AuthorizationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy