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

io.github.primelib.jira4j.restv3.model.NewUserDetails Maven / Gradle / Ivy

The newest version!
package io.github.primelib.jira4j.restv3.model;

import java.util.function.Consumer;
import org.jetbrains.annotations.ApiStatus;
import javax.annotation.processing.Generated;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Set;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * NewUserDetails
 *
 */
@Getter
@Setter
@EqualsAndHashCode
@ToString
@Accessors(fluent = true, chain = true)
@NoArgsConstructor(access = AccessLevel.PROTECTED, force = true)
@Builder
@JsonPropertyOrder({
    "applicationKeys",
    "displayName",
    "emailAddress",
    "key",
    "name",
    "password",
    "products",
    "self"
})
@JsonTypeName("NewUserDetails")
@Generated(value = "io.github.primelib.primecodegen.javafeign.JavaFeignGenerator")
public class NewUserDetails {

    /**
     * Deprecated, do not use.
     */
    @JsonProperty("applicationKeys")
    protected List applicationKeys;

    /**
     * This property is no longer available. If the user has an Atlassian account, their display name is not changed. If the user does not have an Atlassian account, they are sent an email asking them set up an account.
     */
    @JsonProperty("displayName")
    protected String displayName;

    /**
     * The email address for the user.
     */
    @JsonProperty("emailAddress")
    protected String emailAddress;

    /**
     * This property is no longer available. See the [migration guide](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.
     */
    @JsonProperty("key")
    protected String key;

    /**
     * This property is no longer available. See the [migration guide](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.
     */
    @JsonProperty("name")
    protected String name;

    /**
     * This property is no longer available. If the user has an Atlassian account, their password is not changed. If the user does not have an Atlassian account, they are sent an email asking them set up an account.
     */
    @JsonProperty("password")
    protected String password;

    /**
     * Products the new user has access to. Valid products are: jira-core, jira-servicedesk, jira-product-discovery, jira-software. If left empty, the user will get default product access. To create a user without product access, set this field to be an empty array.
     */
    @JsonProperty("products")
    protected Set products;

    /**
     * The URL of the user.
     */
    @JsonProperty("self")
    protected String self;

    /**
     * Constructs a validated instance of {@link NewUserDetails}.
     *
     * @param spec the specification to process
     */
    public NewUserDetails(Consumer spec) {
        spec.accept(this);
    }

    /**
     * Constructs a validated instance of {@link NewUserDetails}.
     * 

* NOTE: This constructor is not considered stable and may change if the model is updated. Consider using {@link #NewUserDetails(Consumer)} instead. * @param applicationKeys Deprecated, do not use. * @param displayName This property is no longer available. If the user has an Atlassian account, their display name is not changed. If the user does not have an Atlassian account, they are sent an email asking them set up an account. * @param emailAddress The email address for the user. * @param key This property is no longer available. See the [migration guide](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. * @param name This property is no longer available. See the [migration guide](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. * @param password This property is no longer available. If the user has an Atlassian account, their password is not changed. If the user does not have an Atlassian account, they are sent an email asking them set up an account. * @param products Products the new user has access to. Valid products are: jira-core, jira-servicedesk, jira-product-discovery, jira-software. If left empty, the user will get default product access. To create a user without product access, set this field to be an empty array. * @param self The URL of the user. */ @ApiStatus.Internal public NewUserDetails(List applicationKeys, String displayName, String emailAddress, String key, String name, String password, Set products, String self) { this.applicationKeys = applicationKeys; this.displayName = displayName; this.emailAddress = emailAddress; this.key = key; this.name = name; this.password = password; this.products = products; this.self = self; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy