
com.kintone.client.api.app.UpdateAppSettingsRequest Maven / Gradle / Ivy
// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.api.app;
import com.kintone.client.api.KintoneRequest;
import com.kintone.client.model.app.AppIcon;
/**
* A request object for Update App Settings API.
*/
public class UpdateAppSettingsRequest implements KintoneRequest {
/**
* The App ID (required).
*/
private Long app;
/**
* The App name (optional). If set to null, leaves this setting unchanged.
*/
private String name;
/**
* The App description (optional). If set to null, leaves this setting unchanged.
*/
private String description;
/**
* An object containing information of the App icon (optional). If set to null, leaves this
* setting unchanged.
*/
private AppIcon icon;
/**
* The color theme (optional). If set to null, leaves this setting unchanged.
*/
private String theme;
/**
* The expected revision number of the App settings (optional). The request will fail if the
* revision number is not the latest revision. The revision will not be checked if this parameter
* is null, or -1 is specified.
*/
private Long revision;
@java.lang.SuppressWarnings("all")
public UpdateAppSettingsRequest() {
}
/**
* The App ID (required).
*/
@java.lang.SuppressWarnings("all")
public Long getApp() {
return this.app;
}
/**
* The App name (optional). If set to null, leaves this setting unchanged.
*/
@java.lang.SuppressWarnings("all")
public String getName() {
return this.name;
}
/**
* The App description (optional). If set to null, leaves this setting unchanged.
*/
@java.lang.SuppressWarnings("all")
public String getDescription() {
return this.description;
}
/**
* An object containing information of the App icon (optional). If set to null, leaves this
* setting unchanged.
*/
@java.lang.SuppressWarnings("all")
public AppIcon getIcon() {
return this.icon;
}
/**
* The color theme (optional). If set to null, leaves this setting unchanged.
*/
@java.lang.SuppressWarnings("all")
public String getTheme() {
return this.theme;
}
/**
* The expected revision number of the App settings (optional). The request will fail if the
* revision number is not the latest revision. The revision will not be checked if this parameter
* is null, or -1 is specified.
*/
@java.lang.SuppressWarnings("all")
public Long getRevision() {
return this.revision;
}
/**
* The App ID (required).
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public UpdateAppSettingsRequest setApp(final Long app) {
this.app = app;
return this;
}
/**
* The App name (optional). If set to null, leaves this setting unchanged.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public UpdateAppSettingsRequest setName(final String name) {
this.name = name;
return this;
}
/**
* The App description (optional). If set to null, leaves this setting unchanged.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public UpdateAppSettingsRequest setDescription(final String description) {
this.description = description;
return this;
}
/**
* An object containing information of the App icon (optional). If set to null, leaves this
* setting unchanged.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public UpdateAppSettingsRequest setIcon(final AppIcon icon) {
this.icon = icon;
return this;
}
/**
* The color theme (optional). If set to null, leaves this setting unchanged.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public UpdateAppSettingsRequest setTheme(final String theme) {
this.theme = theme;
return this;
}
/**
* The expected revision number of the App settings (optional). The request will fail if the
* revision number is not the latest revision. The revision will not be checked if this parameter
* is null, or -1 is specified.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public UpdateAppSettingsRequest setRevision(final Long revision) {
this.revision = revision;
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof UpdateAppSettingsRequest)) return false;
final UpdateAppSettingsRequest other = (UpdateAppSettingsRequest) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$app = this.getApp();
final java.lang.Object other$app = other.getApp();
if (this$app == null ? other$app != null : !this$app.equals(other$app)) return false;
final java.lang.Object this$revision = this.getRevision();
final java.lang.Object other$revision = other.getRevision();
if (this$revision == null ? other$revision != null : !this$revision.equals(other$revision)) return false;
final java.lang.Object this$name = this.getName();
final java.lang.Object other$name = other.getName();
if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
final java.lang.Object this$description = this.getDescription();
final java.lang.Object other$description = other.getDescription();
if (this$description == null ? other$description != null : !this$description.equals(other$description)) return false;
final java.lang.Object this$icon = this.getIcon();
final java.lang.Object other$icon = other.getIcon();
if (this$icon == null ? other$icon != null : !this$icon.equals(other$icon)) return false;
final java.lang.Object this$theme = this.getTheme();
final java.lang.Object other$theme = other.getTheme();
if (this$theme == null ? other$theme != null : !this$theme.equals(other$theme)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof UpdateAppSettingsRequest;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $app = this.getApp();
result = result * PRIME + ($app == null ? 43 : $app.hashCode());
final java.lang.Object $revision = this.getRevision();
result = result * PRIME + ($revision == null ? 43 : $revision.hashCode());
final java.lang.Object $name = this.getName();
result = result * PRIME + ($name == null ? 43 : $name.hashCode());
final java.lang.Object $description = this.getDescription();
result = result * PRIME + ($description == null ? 43 : $description.hashCode());
final java.lang.Object $icon = this.getIcon();
result = result * PRIME + ($icon == null ? 43 : $icon.hashCode());
final java.lang.Object $theme = this.getTheme();
result = result * PRIME + ($theme == null ? 43 : $theme.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "UpdateAppSettingsRequest(app=" + this.getApp() + ", name=" + this.getName() + ", description=" + this.getDescription() + ", icon=" + this.getIcon() + ", theme=" + this.getTheme() + ", revision=" + this.getRevision() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy