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

com.grafana.foundation.dashboard.DashboardMeta Maven / Gradle / Ivy

There is a newer version: 11.3.0-1730898216
Show newest version
// Code generated - EDITING IS FUTILE. DO NOT EDIT.

package com.grafana.foundation.dashboard;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.fasterxml.jackson.annotation.JsonInclude;

public class DashboardMeta {
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("annotationsPermissions")
    public AnnotationPermission annotationsPermissions;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("canAdmin")
    public Boolean canAdmin;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("canDelete")
    public Boolean canDelete;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("canEdit")
    public Boolean canEdit;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("canSave")
    public Boolean canSave;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("canStar")
    public Boolean canStar;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("created")
    public String created;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("createdBy")
    public String createdBy;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("expires")
    public String expires;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("folderId")
    public Long folderId;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("folderTitle")
    public String folderTitle;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("folderUid")
    public String folderUid;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("folderUrl")
    public String folderUrl;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("hasAcl")
    public Boolean hasAcl;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("isFolder")
    public Boolean isFolder;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("isSnapshot")
    public Boolean isSnapshot;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("isStarred")
    public Boolean isStarred;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("provisioned")
    public Boolean provisioned;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("provisionedExternalId")
    public String provisionedExternalId;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("publicDashboardEnabled")
    public Boolean publicDashboardEnabled;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("slug")
    public String slug;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("type")
    public String type;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("updated")
    public String updated;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("updatedBy")
    public String updatedBy;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("url")
    public String url;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("version")
    public Long version;
    
    public String toJSON() throws JsonProcessingException {
        ObjectWriter ow = new ObjectMapper().writer().withDefaultPrettyPrinter();
        return ow.writeValueAsString(this);
    }

    
    public static class Builder implements com.grafana.foundation.cog.Builder {
        protected final DashboardMeta internal;
        
        public Builder() {
            this.internal = new DashboardMeta();
        }
    public Builder annotationsPermissions(com.grafana.foundation.cog.Builder annotationsPermissions) {
    this.internal.annotationsPermissions = annotationsPermissions.build();
        return this;
    }
    
    public Builder canAdmin(Boolean canAdmin) {
    this.internal.canAdmin = canAdmin;
        return this;
    }
    
    public Builder canDelete(Boolean canDelete) {
    this.internal.canDelete = canDelete;
        return this;
    }
    
    public Builder canEdit(Boolean canEdit) {
    this.internal.canEdit = canEdit;
        return this;
    }
    
    public Builder canSave(Boolean canSave) {
    this.internal.canSave = canSave;
        return this;
    }
    
    public Builder canStar(Boolean canStar) {
    this.internal.canStar = canStar;
        return this;
    }
    
    public Builder created(String created) {
    this.internal.created = created;
        return this;
    }
    
    public Builder createdBy(String createdBy) {
    this.internal.createdBy = createdBy;
        return this;
    }
    
    public Builder expires(String expires) {
    this.internal.expires = expires;
        return this;
    }
    
    public Builder folderId(Long folderId) {
    this.internal.folderId = folderId;
        return this;
    }
    
    public Builder folderTitle(String folderTitle) {
    this.internal.folderTitle = folderTitle;
        return this;
    }
    
    public Builder folderUid(String folderUid) {
    this.internal.folderUid = folderUid;
        return this;
    }
    
    public Builder folderUrl(String folderUrl) {
    this.internal.folderUrl = folderUrl;
        return this;
    }
    
    public Builder hasAcl(Boolean hasAcl) {
    this.internal.hasAcl = hasAcl;
        return this;
    }
    
    public Builder isFolder(Boolean isFolder) {
    this.internal.isFolder = isFolder;
        return this;
    }
    
    public Builder isSnapshot(Boolean isSnapshot) {
    this.internal.isSnapshot = isSnapshot;
        return this;
    }
    
    public Builder isStarred(Boolean isStarred) {
    this.internal.isStarred = isStarred;
        return this;
    }
    
    public Builder provisioned(Boolean provisioned) {
    this.internal.provisioned = provisioned;
        return this;
    }
    
    public Builder provisionedExternalId(String provisionedExternalId) {
    this.internal.provisionedExternalId = provisionedExternalId;
        return this;
    }
    
    public Builder publicDashboardEnabled(Boolean publicDashboardEnabled) {
    this.internal.publicDashboardEnabled = publicDashboardEnabled;
        return this;
    }
    
    public Builder slug(String slug) {
    this.internal.slug = slug;
        return this;
    }
    
    public Builder type(String type) {
    this.internal.type = type;
        return this;
    }
    
    public Builder updated(String updated) {
    this.internal.updated = updated;
        return this;
    }
    
    public Builder updatedBy(String updatedBy) {
    this.internal.updatedBy = updatedBy;
        return this;
    }
    
    public Builder url(String url) {
    this.internal.url = url;
        return this;
    }
    
    public Builder version(Long version) {
    this.internal.version = version;
        return this;
    }
    public DashboardMeta build() {
            return this.internal;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy