
com.kintone.client.api.space.UpdateSpaceBodyRequest Maven / Gradle / Ivy
// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.api.space;
import com.kintone.client.api.KintoneRequest;
/**
* A request object for Update Space Body API.
*/
public class UpdateSpaceBodyRequest implements KintoneRequest {
/**
* The Space ID (required).
*/
private Long id;
/**
* The contents of the body as an HTML string (required).
*/
private String body;
@java.lang.SuppressWarnings("all")
public UpdateSpaceBodyRequest() {
}
/**
* The Space ID (required).
*/
@java.lang.SuppressWarnings("all")
public Long getId() {
return this.id;
}
/**
* The contents of the body as an HTML string (required).
*/
@java.lang.SuppressWarnings("all")
public String getBody() {
return this.body;
}
/**
* The Space ID (required).
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public UpdateSpaceBodyRequest setId(final Long id) {
this.id = id;
return this;
}
/**
* The contents of the body as an HTML string (required).
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public UpdateSpaceBodyRequest setBody(final String body) {
this.body = body;
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 UpdateSpaceBodyRequest)) return false;
final UpdateSpaceBodyRequest other = (UpdateSpaceBodyRequest) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$id = this.getId();
final java.lang.Object other$id = other.getId();
if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
final java.lang.Object this$body = this.getBody();
final java.lang.Object other$body = other.getBody();
if (this$body == null ? other$body != null : !this$body.equals(other$body)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof UpdateSpaceBodyRequest;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $id = this.getId();
result = result * PRIME + ($id == null ? 43 : $id.hashCode());
final java.lang.Object $body = this.getBody();
result = result * PRIME + ($body == null ? 43 : $body.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "UpdateSpaceBodyRequest(id=" + this.getId() + ", body=" + this.getBody() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy