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

com.pulumi.azure.apimanagement.UserArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.apimanagement;

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 UserArgs extends com.pulumi.resources.ResourceArgs {

    public static final UserArgs Empty = new UserArgs();

    /**
     * The name of the API Management Service in which the User should be created. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="apiManagementName", required=true)
    private Output apiManagementName;

    /**
     * @return The name of the API Management Service in which the User should be created. Changing this forces a new resource to be created.
     * 
     */
    public Output apiManagementName() {
        return this.apiManagementName;
    }

    /**
     * The kind of confirmation email which will be sent to this user. Possible values are `invite` and `signup`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="confirmation")
    private @Nullable Output confirmation;

    /**
     * @return The kind of confirmation email which will be sent to this user. Possible values are `invite` and `signup`. Changing this forces a new resource to be created.
     * 
     */
    public Optional> confirmation() {
        return Optional.ofNullable(this.confirmation);
    }

    /**
     * The email address associated with this user.
     * 
     */
    @Import(name="email", required=true)
    private Output email;

    /**
     * @return The email address associated with this user.
     * 
     */
    public Output email() {
        return this.email;
    }

    /**
     * The first name for this user.
     * 
     */
    @Import(name="firstName", required=true)
    private Output firstName;

    /**
     * @return The first name for this user.
     * 
     */
    public Output firstName() {
        return this.firstName;
    }

    /**
     * The last name for this user.
     * 
     */
    @Import(name="lastName", required=true)
    private Output lastName;

    /**
     * @return The last name for this user.
     * 
     */
    public Output lastName() {
        return this.lastName;
    }

    /**
     * A note about this user.
     * 
     */
    @Import(name="note")
    private @Nullable Output note;

    /**
     * @return A note about this user.
     * 
     */
    public Optional> note() {
        return Optional.ofNullable(this.note);
    }

    /**
     * The password associated with this user.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return The password associated with this user.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The state of this user. Possible values are `active`, `blocked` and `pending`.
     * 
     * > **NOTE:** the State can be changed from Pending > Active/Blocked but not from Active/Blocked > Pending.
     * 
     */
    @Import(name="state")
    private @Nullable Output state;

    /**
     * @return The state of this user. Possible values are `active`, `blocked` and `pending`.
     * 
     * > **NOTE:** the State can be changed from Pending > Active/Blocked but not from Active/Blocked > Pending.
     * 
     */
    public Optional> state() {
        return Optional.ofNullable(this.state);
    }

    /**
     * The Identifier for this User, which must be unique within the API Management Service. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="userId", required=true)
    private Output userId;

    /**
     * @return The Identifier for this User, which must be unique within the API Management Service. Changing this forces a new resource to be created.
     * 
     */
    public Output userId() {
        return this.userId;
    }

    private UserArgs() {}

    private UserArgs(UserArgs $) {
        this.apiManagementName = $.apiManagementName;
        this.confirmation = $.confirmation;
        this.email = $.email;
        this.firstName = $.firstName;
        this.lastName = $.lastName;
        this.note = $.note;
        this.password = $.password;
        this.resourceGroupName = $.resourceGroupName;
        this.state = $.state;
        this.userId = $.userId;
    }

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

    public static final class Builder {
        private UserArgs $;

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

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

        /**
         * @param apiManagementName The name of the API Management Service in which the User should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder apiManagementName(Output apiManagementName) {
            $.apiManagementName = apiManagementName;
            return this;
        }

        /**
         * @param apiManagementName The name of the API Management Service in which the User should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder apiManagementName(String apiManagementName) {
            return apiManagementName(Output.of(apiManagementName));
        }

        /**
         * @param confirmation The kind of confirmation email which will be sent to this user. Possible values are `invite` and `signup`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder confirmation(@Nullable Output confirmation) {
            $.confirmation = confirmation;
            return this;
        }

        /**
         * @param confirmation The kind of confirmation email which will be sent to this user. Possible values are `invite` and `signup`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder confirmation(String confirmation) {
            return confirmation(Output.of(confirmation));
        }

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

        /**
         * @param email The email address associated with this user.
         * 
         * @return builder
         * 
         */
        public Builder email(String email) {
            return email(Output.of(email));
        }

        /**
         * @param firstName The first name for this user.
         * 
         * @return builder
         * 
         */
        public Builder firstName(Output firstName) {
            $.firstName = firstName;
            return this;
        }

        /**
         * @param firstName The first name for this user.
         * 
         * @return builder
         * 
         */
        public Builder firstName(String firstName) {
            return firstName(Output.of(firstName));
        }

        /**
         * @param lastName The last name for this user.
         * 
         * @return builder
         * 
         */
        public Builder lastName(Output lastName) {
            $.lastName = lastName;
            return this;
        }

        /**
         * @param lastName The last name for this user.
         * 
         * @return builder
         * 
         */
        public Builder lastName(String lastName) {
            return lastName(Output.of(lastName));
        }

        /**
         * @param note A note about this user.
         * 
         * @return builder
         * 
         */
        public Builder note(@Nullable Output note) {
            $.note = note;
            return this;
        }

        /**
         * @param note A note about this user.
         * 
         * @return builder
         * 
         */
        public Builder note(String note) {
            return note(Output.of(note));
        }

        /**
         * @param password The password associated with this user.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password The password associated with this user.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param resourceGroupName The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param state The state of this user. Possible values are `active`, `blocked` and `pending`.
         * 
         * > **NOTE:** the State can be changed from Pending > Active/Blocked but not from Active/Blocked > Pending.
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output state) {
            $.state = state;
            return this;
        }

        /**
         * @param state The state of this user. Possible values are `active`, `blocked` and `pending`.
         * 
         * > **NOTE:** the State can be changed from Pending > Active/Blocked but not from Active/Blocked > Pending.
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Output.of(state));
        }

        /**
         * @param userId The Identifier for this User, which must be unique within the API Management Service. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder userId(Output userId) {
            $.userId = userId;
            return this;
        }

        /**
         * @param userId The Identifier for this User, which must be unique within the API Management Service. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder userId(String userId) {
            return userId(Output.of(userId));
        }

        public UserArgs build() {
            if ($.apiManagementName == null) {
                throw new MissingRequiredPropertyException("UserArgs", "apiManagementName");
            }
            if ($.email == null) {
                throw new MissingRequiredPropertyException("UserArgs", "email");
            }
            if ($.firstName == null) {
                throw new MissingRequiredPropertyException("UserArgs", "firstName");
            }
            if ($.lastName == null) {
                throw new MissingRequiredPropertyException("UserArgs", "lastName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("UserArgs", "resourceGroupName");
            }
            if ($.userId == null) {
                throw new MissingRequiredPropertyException("UserArgs", "userId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy