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

com.pulumi.github.EnterpriseOrganizationArgs Maven / Gradle / Ivy

There is a newer version: 6.4.0-alpha.1731735876
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.github;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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;


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

    public static final EnterpriseOrganizationArgs Empty = new EnterpriseOrganizationArgs();

    /**
     * List of organization owner usernames.
     * 
     */
    @Import(name="adminLogins", required=true)
    private Output> adminLogins;

    /**
     * @return List of organization owner usernames.
     * 
     */
    public Output> adminLogins() {
        return this.adminLogins;
    }

    /**
     * The billing email address.
     * 
     */
    @Import(name="billingEmail", required=true)
    private Output billingEmail;

    /**
     * @return The billing email address.
     * 
     */
    public Output billingEmail() {
        return this.billingEmail;
    }

    /**
     * The description of the organization.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the organization.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The display name of the organization.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return The display name of the organization.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * The ID of the enterprise.
     * 
     */
    @Import(name="enterpriseId", required=true)
    private Output enterpriseId;

    /**
     * @return The ID of the enterprise.
     * 
     */
    public Output enterpriseId() {
        return this.enterpriseId;
    }

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

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

    private EnterpriseOrganizationArgs() {}

    private EnterpriseOrganizationArgs(EnterpriseOrganizationArgs $) {
        this.adminLogins = $.adminLogins;
        this.billingEmail = $.billingEmail;
        this.description = $.description;
        this.displayName = $.displayName;
        this.enterpriseId = $.enterpriseId;
        this.name = $.name;
    }

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

    public static final class Builder {
        private EnterpriseOrganizationArgs $;

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

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

        /**
         * @param adminLogins List of organization owner usernames.
         * 
         * @return builder
         * 
         */
        public Builder adminLogins(Output> adminLogins) {
            $.adminLogins = adminLogins;
            return this;
        }

        /**
         * @param adminLogins List of organization owner usernames.
         * 
         * @return builder
         * 
         */
        public Builder adminLogins(List adminLogins) {
            return adminLogins(Output.of(adminLogins));
        }

        /**
         * @param adminLogins List of organization owner usernames.
         * 
         * @return builder
         * 
         */
        public Builder adminLogins(String... adminLogins) {
            return adminLogins(List.of(adminLogins));
        }

        /**
         * @param billingEmail The billing email address.
         * 
         * @return builder
         * 
         */
        public Builder billingEmail(Output billingEmail) {
            $.billingEmail = billingEmail;
            return this;
        }

        /**
         * @param billingEmail The billing email address.
         * 
         * @return builder
         * 
         */
        public Builder billingEmail(String billingEmail) {
            return billingEmail(Output.of(billingEmail));
        }

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

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

        /**
         * @param displayName The display name of the organization.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName The display name of the organization.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param enterpriseId The ID of the enterprise.
         * 
         * @return builder
         * 
         */
        public Builder enterpriseId(Output enterpriseId) {
            $.enterpriseId = enterpriseId;
            return this;
        }

        /**
         * @param enterpriseId The ID of the enterprise.
         * 
         * @return builder
         * 
         */
        public Builder enterpriseId(String enterpriseId) {
            return enterpriseId(Output.of(enterpriseId));
        }

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

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

        public EnterpriseOrganizationArgs build() {
            if ($.adminLogins == null) {
                throw new MissingRequiredPropertyException("EnterpriseOrganizationArgs", "adminLogins");
            }
            if ($.billingEmail == null) {
                throw new MissingRequiredPropertyException("EnterpriseOrganizationArgs", "billingEmail");
            }
            if ($.enterpriseId == null) {
                throw new MissingRequiredPropertyException("EnterpriseOrganizationArgs", "enterpriseId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy