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

com.pulumi.github.inputs.UserInvitationAccepterState 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.inputs;

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


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

    public static final UserInvitationAccepterState Empty = new UserInvitationAccepterState();

    /**
     * Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
     * 
     */
    @Import(name="allowEmptyId")
    private @Nullable Output allowEmptyId;

    /**
     * @return Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
     * 
     */
    public Optional> allowEmptyId() {
        return Optional.ofNullable(this.allowEmptyId);
    }

    /**
     * ID of the invitation to accept. Must be set when `allow_empty_id` is `false`.
     * 
     */
    @Import(name="invitationId")
    private @Nullable Output invitationId;

    /**
     * @return ID of the invitation to accept. Must be set when `allow_empty_id` is `false`.
     * 
     */
    public Optional> invitationId() {
        return Optional.ofNullable(this.invitationId);
    }

    private UserInvitationAccepterState() {}

    private UserInvitationAccepterState(UserInvitationAccepterState $) {
        this.allowEmptyId = $.allowEmptyId;
        this.invitationId = $.invitationId;
    }

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

    public static final class Builder {
        private UserInvitationAccepterState $;

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

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

        /**
         * @param allowEmptyId Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
         * 
         * @return builder
         * 
         */
        public Builder allowEmptyId(@Nullable Output allowEmptyId) {
            $.allowEmptyId = allowEmptyId;
            return this;
        }

        /**
         * @param allowEmptyId Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
         * 
         * @return builder
         * 
         */
        public Builder allowEmptyId(Boolean allowEmptyId) {
            return allowEmptyId(Output.of(allowEmptyId));
        }

        /**
         * @param invitationId ID of the invitation to accept. Must be set when `allow_empty_id` is `false`.
         * 
         * @return builder
         * 
         */
        public Builder invitationId(@Nullable Output invitationId) {
            $.invitationId = invitationId;
            return this;
        }

        /**
         * @param invitationId ID of the invitation to accept. Must be set when `allow_empty_id` is `false`.
         * 
         * @return builder
         * 
         */
        public Builder invitationId(String invitationId) {
            return invitationId(Output.of(invitationId));
        }

        public UserInvitationAccepterState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy