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

net.leanix.api.models.DashboardSettings Maven / Gradle / Ivy

/*
 * Pathfinder
 * Core application for storage and analysis of IT landscape data
 *
 * OpenAPI spec version: 5.0.813
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package net.leanix.api.models;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;

/**
 * DashboardSettings
 */

public class DashboardSettings {
  @JsonProperty("allowedIframePanelUrls")
  private String allowedIframePanelUrls = null;

  @JsonProperty("defaultDashboard")
  private String defaultDashboard = null;

  @JsonProperty("allowAllUrlsInIframePanel")
  private Boolean allowAllUrlsInIframePanel = false;

  @JsonProperty("allowedIframePanelAttributes")
  private List allowedIframePanelAttributes = new ArrayList();

  public DashboardSettings allowedIframePanelUrls(String allowedIframePanelUrls) {
    this.allowedIframePanelUrls = allowedIframePanelUrls;
    return this;
  }

   /**
   * Get allowedIframePanelUrls
   * @return allowedIframePanelUrls
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getAllowedIframePanelUrls() {
    return allowedIframePanelUrls;
  }

  public void setAllowedIframePanelUrls(String allowedIframePanelUrls) {
    this.allowedIframePanelUrls = allowedIframePanelUrls;
  }

  public DashboardSettings defaultDashboard(String defaultDashboard) {
    this.defaultDashboard = defaultDashboard;
    return this;
  }

   /**
   * Get defaultDashboard
   * @return defaultDashboard
  **/
  @ApiModelProperty(example = "null", value = "")
  public String getDefaultDashboard() {
    return defaultDashboard;
  }

  public void setDefaultDashboard(String defaultDashboard) {
    this.defaultDashboard = defaultDashboard;
  }

  public DashboardSettings allowAllUrlsInIframePanel(Boolean allowAllUrlsInIframePanel) {
    this.allowAllUrlsInIframePanel = allowAllUrlsInIframePanel;
    return this;
  }

   /**
   * Get allowAllUrlsInIframePanel
   * @return allowAllUrlsInIframePanel
  **/
  @ApiModelProperty(example = "null", value = "")
  public Boolean getAllowAllUrlsInIframePanel() {
    return allowAllUrlsInIframePanel;
  }

  public void setAllowAllUrlsInIframePanel(Boolean allowAllUrlsInIframePanel) {
    this.allowAllUrlsInIframePanel = allowAllUrlsInIframePanel;
  }

  public DashboardSettings allowedIframePanelAttributes(List allowedIframePanelAttributes) {
    this.allowedIframePanelAttributes = allowedIframePanelAttributes;
    return this;
  }

  public DashboardSettings addAllowedIframePanelAttributesItem(String allowedIframePanelAttributesItem) {
    this.allowedIframePanelAttributes.add(allowedIframePanelAttributesItem);
    return this;
  }

   /**
   * Get allowedIframePanelAttributes
   * @return allowedIframePanelAttributes
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public List getAllowedIframePanelAttributes() {
    return allowedIframePanelAttributes;
  }

  public void setAllowedIframePanelAttributes(List allowedIframePanelAttributes) {
    this.allowedIframePanelAttributes = allowedIframePanelAttributes;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DashboardSettings dashboardSettings = (DashboardSettings) o;
    return Objects.equals(this.allowedIframePanelUrls, dashboardSettings.allowedIframePanelUrls) &&
        Objects.equals(this.defaultDashboard, dashboardSettings.defaultDashboard) &&
        Objects.equals(this.allowAllUrlsInIframePanel, dashboardSettings.allowAllUrlsInIframePanel) &&
        Objects.equals(this.allowedIframePanelAttributes, dashboardSettings.allowedIframePanelAttributes);
  }

  @Override
  public int hashCode() {
    return Objects.hash(allowedIframePanelUrls, defaultDashboard, allowAllUrlsInIframePanel, allowedIframePanelAttributes);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DashboardSettings {\n");
    
    sb.append("    allowedIframePanelUrls: ").append(toIndentedString(allowedIframePanelUrls)).append("\n");
    sb.append("    defaultDashboard: ").append(toIndentedString(defaultDashboard)).append("\n");
    sb.append("    allowAllUrlsInIframePanel: ").append(toIndentedString(allowAllUrlsInIframePanel)).append("\n");
    sb.append("    allowedIframePanelAttributes: ").append(toIndentedString(allowedIframePanelAttributes)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy