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.databind.annotation.JsonSerialize;

public class DashboardMeta {
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("annotationsPermissions")
    public AnnotationPermission annotationsPermissions;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("canAdmin")
    public Boolean canAdmin;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("canDelete")
    public Boolean canDelete;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("canEdit")
    public Boolean canEdit;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("canSave")
    public Boolean canSave;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("canStar")
    public Boolean canStar;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("created")
    public String created;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("createdBy")
    public String createdBy;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("expires")
    public String expires;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("folderId")
    public Long folderId;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("folderTitle")
    public String folderTitle;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("folderUid")
    public String folderUid;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("folderUrl")
    public String folderUrl;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("hasAcl")
    public Boolean hasAcl;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("isFolder")
    public Boolean isFolder;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("isSnapshot")
    public Boolean isSnapshot;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("isStarred")
    public Boolean isStarred;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("provisioned")
    public Boolean provisioned;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("provisionedExternalId")
    public String provisionedExternalId;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("publicDashboardEnabled")
    public Boolean publicDashboardEnabled;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("publicDashboardUid")
    public String publicDashboardUid;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("slug")
    public String slug;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("type")
    public String type;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("updated")
    public String updated;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("updatedBy")
    public String updatedBy;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("url")
    public String url;
    @JsonSerialize(include = JsonSerialize.Inclusion.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 {
        private 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 publicDashboardUid(String publicDashboardUid) {
    this.internal.publicDashboardUid = publicDashboardUid;
        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