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

com.pulumi.okta.AppSignonPolicyArgs Maven / Gradle / Ivy

There is a newer version: 4.13.0-alpha.1732774005
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.okta;

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


public final class AppSignonPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final AppSignonPolicyArgs Empty = new AppSignonPolicyArgs();

    /**
     * Description of the policy.
     * 
     */
    @Import(name="description", required=true)
    private Output description;

    /**
     * @return Description of the policy.
     * 
     */
    public Output description() {
        return this.description;
    }

    /**
     * Name of the policy.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the policy.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    private AppSignonPolicyArgs() {}

    private AppSignonPolicyArgs(AppSignonPolicyArgs $) {
        this.description = $.description;
        this.name = $.name;
    }

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

    public static final class Builder {
        private AppSignonPolicyArgs $;

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

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

        /**
         * @param description Description of the policy.
         * 
         * @return builder
         * 
         */
        public Builder description(Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of the policy.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param name Name of the policy.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the policy.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public AppSignonPolicyArgs build() {
            if ($.description == null) {
                throw new MissingRequiredPropertyException("AppSignonPolicyArgs", "description");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy