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

io.github.primelib.jira4j.restv3.model.ScopeProject 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.AllArgsConstructor;
import lombok.experimental.Accessors;

import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * ScopeProject
 *
 */
@Getter
@Setter
@EqualsAndHashCode
@ToString
@Accessors(fluent = true, chain = true)
@NoArgsConstructor(access = AccessLevel.PROTECTED, force = true)
@Builder
@JsonPropertyOrder({
    "avatarUrls",
    "id",
    "key",
    "name",
    "projectCategory",
    "projectTypeKey",
    "self",
    "simplified"
})
@JsonTypeName("Scope_project")
@Generated(value = "io.github.primelib.primecodegen.javafeign.JavaFeignGenerator")
public class ScopeProject {

    @JsonProperty("avatarUrls")
    protected ProjectAvatarUrls avatarUrls;

    /**
     * The ID of the project.
     */
    @JsonProperty("id")
    protected String id;

    /**
     * The key of the project.
     */
    @JsonProperty("key")
    protected String key;

    /**
     * The name of the project.
     */
    @JsonProperty("name")
    protected String name;

    @JsonProperty("projectCategory")
    protected ProjectDetailsProjectCategory projectCategory;

    /**
     * The [project type](https://confluence.atlassian.com/x/GwiiLQ#Jiraapplicationsoverview-Productfeaturesandprojecttypes) of the project.
     */
    @JsonProperty("projectTypeKey")
    protected ProjectTypeKeyEnum projectTypeKey;

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

    /**
     * Whether or not the project is simplified.
     */
    @JsonProperty("simplified")
    protected Boolean simplified;

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

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

* NOTE: This constructor is not considered stable and may change if the model is updated. Consider using {@link #ScopeProject(Consumer)} instead. * @param avatarUrls avatarUrls * @param id The ID of the project. * @param key The key of the project. * @param name The name of the project. * @param projectCategory projectCategory * @param projectTypeKey The [project type](https://confluence.atlassian.com/x/GwiiLQ#Jiraapplicationsoverview-Productfeaturesandprojecttypes) of the project. * @param self The URL of the project details. * @param simplified Whether or not the project is simplified. */ @ApiStatus.Internal public ScopeProject(ProjectAvatarUrls avatarUrls, String id, String key, String name, ProjectDetailsProjectCategory projectCategory, ProjectTypeKeyEnum projectTypeKey, String self, Boolean simplified) { this.avatarUrls = avatarUrls; this.id = id; this.key = key; this.name = name; this.projectCategory = projectCategory; this.projectTypeKey = projectTypeKey; this.self = self; this.simplified = simplified; } /** * The [project type](https://confluence.atlassian.com/x/GwiiLQ#Jiraapplicationsoverview-Productfeaturesandprojecttypes) of the project. */ @AllArgsConstructor public enum ProjectTypeKeyEnum { SOFTWARE("software"), SERVICE_DESK("service_desk"), BUSINESS("business"); private static final ProjectTypeKeyEnum[] VALUES = values(); // prevent allocating a new array for every call to values() private final String value; @JsonCreator public static ProjectTypeKeyEnum of(String input) { if (input != null) { for (ProjectTypeKeyEnum v : VALUES) { if (input.equalsIgnoreCase(v.value)) return v; } } return null; } @JsonValue public String getValue() { return value; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy