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

io.apicurio.registry.rest.v3.beans.RoleMapping Maven / Gradle / Ivy

There is a newer version: 3.0.4
Show newest version

package io.apicurio.registry.rest.v3.beans;

import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.apicurio.registry.types.RoleType;


/**
 * The mapping between a user/principal and their role.
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "principalId",
    "role",
    "principalName"
})
@Generated("jsonschema2pojo")
@io.quarkus.runtime.annotations.RegisterForReflection
@lombok.experimental.SuperBuilder
@lombok.AllArgsConstructor
@lombok.NoArgsConstructor
@lombok.EqualsAndHashCode
@lombok.ToString(callSuper = true)
public class RoleMapping {

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("principalId")
    @JsonPropertyDescription("")
    private String principalId;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("role")
    @JsonPropertyDescription("")
    private RoleType role;
    /**
     * A friendly name for the principal.
     * 
     */
    @JsonProperty("principalName")
    @JsonPropertyDescription("A friendly name for the principal.")
    private String principalName;

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("principalId")
    public String getPrincipalId() {
        return principalId;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("principalId")
    public void setPrincipalId(String principalId) {
        this.principalId = principalId;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("role")
    public RoleType getRole() {
        return role;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("role")
    public void setRole(RoleType role) {
        this.role = role;
    }

    /**
     * A friendly name for the principal.
     * 
     */
    @JsonProperty("principalName")
    public String getPrincipalName() {
        return principalName;
    }

    /**
     * A friendly name for the principal.
     * 
     */
    @JsonProperty("principalName")
    public void setPrincipalName(String principalName) {
        this.principalName = principalName;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy