net.leanix.api.models.WorkspaceSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leanix-sdk-java Show documentation
Show all versions of leanix-sdk-java Show documentation
SDK for Java to access leanIX REST API
/*
* LeanIX Pathfinder REST API
* Core application for storage and analysis of IT landscape data
*
* OpenAPI spec version: 4.0.217
*
*
* 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;
import net.leanix.api.models.Dashboard;
import net.leanix.api.models.Design;
import net.leanix.api.models.HelpSettings;
import net.leanix.api.models.IntegrationsSettings;
import net.leanix.api.models.Metrics;
import net.leanix.api.models.RetentionSettings;
import net.leanix.api.models.SnapshotSettings;
import net.leanix.api.models.SubscriptionSettings;
import net.leanix.api.models.TagSettings;
/**
* WorkspaceSettings
*/
public class WorkspaceSettings {
@JsonProperty("subscriptions")
private SubscriptionSettings subscriptions = null;
@JsonProperty("help")
private HelpSettings help = null;
@JsonProperty("snapshot")
private SnapshotSettings snapshot = null;
@JsonProperty("integrations")
private IntegrationsSettings integrations = null;
@JsonProperty("currency")
private String currency = null;
@JsonProperty("language")
private String language = null;
@JsonProperty("jsSnippet")
private String jsSnippet = null;
@JsonProperty("idleTimeoutMinutes")
private Integer idleTimeoutMinutes = null;
@JsonProperty("defaultReportId")
private String defaultReportId = null;
/**
* Gets or Sets dataPrivacy
*/
public enum DataPrivacyEnum {
NORMAL("NORMAL"),
RELAXED("RELAXED");
private String value;
DataPrivacyEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static DataPrivacyEnum fromValue(String text) {
for (DataPrivacyEnum b : DataPrivacyEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("dataPrivacy")
private DataPrivacyEnum dataPrivacy = null;
/**
* Gets or Sets quickSearchMode
*/
public enum QuickSearchModeEnum {
LIST_VIEW("LIST_VIEW"),
GROUPED_VIEW("GROUPED_VIEW");
private String value;
QuickSearchModeEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static QuickSearchModeEnum fromValue(String text) {
for (QuickSearchModeEnum b : QuickSearchModeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("quickSearchMode")
private QuickSearchModeEnum quickSearchMode = null;
@JsonProperty("design")
private Design design = null;
@JsonProperty("metrics")
private Metrics metrics = null;
@JsonProperty("dashboards")
private List dashboards = new ArrayList();
@JsonProperty("retention")
private RetentionSettings retention = null;
@JsonProperty("tags")
private TagSettings tags = null;
public WorkspaceSettings subscriptions(SubscriptionSettings subscriptions) {
this.subscriptions = subscriptions;
return this;
}
/**
* Get subscriptions
* @return subscriptions
**/
@ApiModelProperty(example = "null", value = "")
public SubscriptionSettings getSubscriptions() {
return subscriptions;
}
public void setSubscriptions(SubscriptionSettings subscriptions) {
this.subscriptions = subscriptions;
}
public WorkspaceSettings help(HelpSettings help) {
this.help = help;
return this;
}
/**
* Get help
* @return help
**/
@ApiModelProperty(example = "null", value = "")
public HelpSettings getHelp() {
return help;
}
public void setHelp(HelpSettings help) {
this.help = help;
}
public WorkspaceSettings snapshot(SnapshotSettings snapshot) {
this.snapshot = snapshot;
return this;
}
/**
* Get snapshot
* @return snapshot
**/
@ApiModelProperty(example = "null", value = "")
public SnapshotSettings getSnapshot() {
return snapshot;
}
public void setSnapshot(SnapshotSettings snapshot) {
this.snapshot = snapshot;
}
public WorkspaceSettings integrations(IntegrationsSettings integrations) {
this.integrations = integrations;
return this;
}
/**
* Get integrations
* @return integrations
**/
@ApiModelProperty(example = "null", value = "")
public IntegrationsSettings getIntegrations() {
return integrations;
}
public void setIntegrations(IntegrationsSettings integrations) {
this.integrations = integrations;
}
public WorkspaceSettings currency(String currency) {
this.currency = currency;
return this;
}
/**
* Get currency
* @return currency
**/
@ApiModelProperty(example = "null", value = "")
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
public WorkspaceSettings language(String language) {
this.language = language;
return this;
}
/**
* Get language
* @return language
**/
@ApiModelProperty(example = "null", value = "")
public String getLanguage() {
return language;
}
public void setLanguage(String language) {
this.language = language;
}
public WorkspaceSettings jsSnippet(String jsSnippet) {
this.jsSnippet = jsSnippet;
return this;
}
/**
* Get jsSnippet
* @return jsSnippet
**/
@ApiModelProperty(example = "null", value = "")
public String getJsSnippet() {
return jsSnippet;
}
public void setJsSnippet(String jsSnippet) {
this.jsSnippet = jsSnippet;
}
public WorkspaceSettings idleTimeoutMinutes(Integer idleTimeoutMinutes) {
this.idleTimeoutMinutes = idleTimeoutMinutes;
return this;
}
/**
* Get idleTimeoutMinutes
* @return idleTimeoutMinutes
**/
@ApiModelProperty(example = "null", value = "")
public Integer getIdleTimeoutMinutes() {
return idleTimeoutMinutes;
}
public void setIdleTimeoutMinutes(Integer idleTimeoutMinutes) {
this.idleTimeoutMinutes = idleTimeoutMinutes;
}
public WorkspaceSettings defaultReportId(String defaultReportId) {
this.defaultReportId = defaultReportId;
return this;
}
/**
* Get defaultReportId
* @return defaultReportId
**/
@ApiModelProperty(example = "null", value = "")
public String getDefaultReportId() {
return defaultReportId;
}
public void setDefaultReportId(String defaultReportId) {
this.defaultReportId = defaultReportId;
}
public WorkspaceSettings dataPrivacy(DataPrivacyEnum dataPrivacy) {
this.dataPrivacy = dataPrivacy;
return this;
}
/**
* Get dataPrivacy
* @return dataPrivacy
**/
@ApiModelProperty(example = "null", value = "")
public DataPrivacyEnum getDataPrivacy() {
return dataPrivacy;
}
public void setDataPrivacy(DataPrivacyEnum dataPrivacy) {
this.dataPrivacy = dataPrivacy;
}
public WorkspaceSettings quickSearchMode(QuickSearchModeEnum quickSearchMode) {
this.quickSearchMode = quickSearchMode;
return this;
}
/**
* Get quickSearchMode
* @return quickSearchMode
**/
@ApiModelProperty(example = "null", value = "")
public QuickSearchModeEnum getQuickSearchMode() {
return quickSearchMode;
}
public void setQuickSearchMode(QuickSearchModeEnum quickSearchMode) {
this.quickSearchMode = quickSearchMode;
}
public WorkspaceSettings design(Design design) {
this.design = design;
return this;
}
/**
* Get design
* @return design
**/
@ApiModelProperty(example = "null", value = "")
public Design getDesign() {
return design;
}
public void setDesign(Design design) {
this.design = design;
}
public WorkspaceSettings metrics(Metrics metrics) {
this.metrics = metrics;
return this;
}
/**
* Get metrics
* @return metrics
**/
@ApiModelProperty(example = "null", value = "")
public Metrics getMetrics() {
return metrics;
}
public void setMetrics(Metrics metrics) {
this.metrics = metrics;
}
public WorkspaceSettings dashboards(List dashboards) {
this.dashboards = dashboards;
return this;
}
public WorkspaceSettings addDashboardsItem(Dashboard dashboardsItem) {
this.dashboards.add(dashboardsItem);
return this;
}
/**
* Get dashboards
* @return dashboards
**/
@ApiModelProperty(example = "null", value = "")
public List getDashboards() {
return dashboards;
}
public void setDashboards(List dashboards) {
this.dashboards = dashboards;
}
public WorkspaceSettings retention(RetentionSettings retention) {
this.retention = retention;
return this;
}
/**
* Get retention
* @return retention
**/
@ApiModelProperty(example = "null", value = "")
public RetentionSettings getRetention() {
return retention;
}
public void setRetention(RetentionSettings retention) {
this.retention = retention;
}
public WorkspaceSettings tags(TagSettings tags) {
this.tags = tags;
return this;
}
/**
* Get tags
* @return tags
**/
@ApiModelProperty(example = "null", value = "")
public TagSettings getTags() {
return tags;
}
public void setTags(TagSettings tags) {
this.tags = tags;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
WorkspaceSettings workspaceSettings = (WorkspaceSettings) o;
return Objects.equals(this.subscriptions, workspaceSettings.subscriptions) &&
Objects.equals(this.help, workspaceSettings.help) &&
Objects.equals(this.snapshot, workspaceSettings.snapshot) &&
Objects.equals(this.integrations, workspaceSettings.integrations) &&
Objects.equals(this.currency, workspaceSettings.currency) &&
Objects.equals(this.language, workspaceSettings.language) &&
Objects.equals(this.jsSnippet, workspaceSettings.jsSnippet) &&
Objects.equals(this.idleTimeoutMinutes, workspaceSettings.idleTimeoutMinutes) &&
Objects.equals(this.defaultReportId, workspaceSettings.defaultReportId) &&
Objects.equals(this.dataPrivacy, workspaceSettings.dataPrivacy) &&
Objects.equals(this.quickSearchMode, workspaceSettings.quickSearchMode) &&
Objects.equals(this.design, workspaceSettings.design) &&
Objects.equals(this.metrics, workspaceSettings.metrics) &&
Objects.equals(this.dashboards, workspaceSettings.dashboards) &&
Objects.equals(this.retention, workspaceSettings.retention) &&
Objects.equals(this.tags, workspaceSettings.tags);
}
@Override
public int hashCode() {
return Objects.hash(subscriptions, help, snapshot, integrations, currency, language, jsSnippet, idleTimeoutMinutes, defaultReportId, dataPrivacy, quickSearchMode, design, metrics, dashboards, retention, tags);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WorkspaceSettings {\n");
sb.append(" subscriptions: ").append(toIndentedString(subscriptions)).append("\n");
sb.append(" help: ").append(toIndentedString(help)).append("\n");
sb.append(" snapshot: ").append(toIndentedString(snapshot)).append("\n");
sb.append(" integrations: ").append(toIndentedString(integrations)).append("\n");
sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
sb.append(" language: ").append(toIndentedString(language)).append("\n");
sb.append(" jsSnippet: ").append(toIndentedString(jsSnippet)).append("\n");
sb.append(" idleTimeoutMinutes: ").append(toIndentedString(idleTimeoutMinutes)).append("\n");
sb.append(" defaultReportId: ").append(toIndentedString(defaultReportId)).append("\n");
sb.append(" dataPrivacy: ").append(toIndentedString(dataPrivacy)).append("\n");
sb.append(" quickSearchMode: ").append(toIndentedString(quickSearchMode)).append("\n");
sb.append(" design: ").append(toIndentedString(design)).append("\n");
sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n");
sb.append(" dashboards: ").append(toIndentedString(dashboards)).append("\n");
sb.append(" retention: ").append(toIndentedString(retention)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).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