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

com.pulumi.azure.apimanagement.inputs.UserState 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.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;


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

    public static final UserState Empty = new UserState();

    /**
     * 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")
    private @Nullable 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 Optional> apiManagementName() {
        return Optional.ofNullable(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")
    private @Nullable Output email;

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

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

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

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

    /**
     * @return The last name for this user.
     * 
     */
    public Optional> lastName() {
        return Optional.ofNullable(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")
    private @Nullable 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 Optional> resourceGroupName() {
        return Optional.ofNullable(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")
    private @Nullable 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 Optional> userId() {
        return Optional.ofNullable(this.userId);
    }

    private UserState() {}

    private UserState(UserState $) {
        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(UserState defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private UserState $;

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

        public Builder(UserState defaults) {
            $ = new UserState(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(@Nullable 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(@Nullable 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(@Nullable 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(@Nullable 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(@Nullable 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(@Nullable 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 UserState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy