com.kintone.client.model.app.AppAction Maven / Gradle / Ivy
// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.model.app;
import com.kintone.client.model.Entity;
import com.kintone.client.model.app.field.RelatedApp;
import java.util.List;
/**
* An object containing an Action setting.
*/
public class AppAction {
/**
* The name of the Action.
*/
private String name;
/**
* The ID of the Action.
*/
private Long id;
/**
* The order of the Action, starting from 0.
*/
private Long index;
/**
* An object containing the Target option that specifies the destination app where data is to be
* copied.
*/
private RelatedApp destApp;
/**
* An array of objects containing the "Field Mappings" options.
*/
private List mappings;
/**
* An array of objects containing the entities the Action is granted to.
*/
private List entities;
@java.lang.SuppressWarnings("all")
public AppAction() {
}
/**
* The name of the Action.
*/
@java.lang.SuppressWarnings("all")
public String getName() {
return this.name;
}
/**
* The ID of the Action.
*/
@java.lang.SuppressWarnings("all")
public Long getId() {
return this.id;
}
/**
* The order of the Action, starting from 0.
*/
@java.lang.SuppressWarnings("all")
public Long getIndex() {
return this.index;
}
/**
* An object containing the Target option that specifies the destination app where data is to be
* copied.
*/
@java.lang.SuppressWarnings("all")
public RelatedApp getDestApp() {
return this.destApp;
}
/**
* An array of objects containing the "Field Mappings" options.
*/
@java.lang.SuppressWarnings("all")
public List getMappings() {
return this.mappings;
}
/**
* An array of objects containing the entities the Action is granted to.
*/
@java.lang.SuppressWarnings("all")
public List getEntities() {
return this.entities;
}
/**
* The name of the Action.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public AppAction setName(final String name) {
this.name = name;
return this;
}
/**
* The ID of the Action.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public AppAction setId(final Long id) {
this.id = id;
return this;
}
/**
* The order of the Action, starting from 0.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public AppAction setIndex(final Long index) {
this.index = index;
return this;
}
/**
* An object containing the Target option that specifies the destination app where data is to be
* copied.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public AppAction setDestApp(final RelatedApp destApp) {
this.destApp = destApp;
return this;
}
/**
* An array of objects containing the "Field Mappings" options.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public AppAction setMappings(final List mappings) {
this.mappings = mappings;
return this;
}
/**
* An array of objects containing the entities the Action is granted to.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public AppAction setEntities(final List entities) {
this.entities = entities;
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 AppAction)) return false;
final AppAction other = (AppAction) 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$index = this.getIndex();
final java.lang.Object other$index = other.getIndex();
if (this$index == null ? other$index != null : !this$index.equals(other$index)) 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$destApp = this.getDestApp();
final java.lang.Object other$destApp = other.getDestApp();
if (this$destApp == null ? other$destApp != null : !this$destApp.equals(other$destApp)) return false;
final java.lang.Object this$mappings = this.getMappings();
final java.lang.Object other$mappings = other.getMappings();
if (this$mappings == null ? other$mappings != null : !this$mappings.equals(other$mappings)) return false;
final java.lang.Object this$entities = this.getEntities();
final java.lang.Object other$entities = other.getEntities();
if (this$entities == null ? other$entities != null : !this$entities.equals(other$entities)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof AppAction;
}
@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 $index = this.getIndex();
result = result * PRIME + ($index == null ? 43 : $index.hashCode());
final java.lang.Object $name = this.getName();
result = result * PRIME + ($name == null ? 43 : $name.hashCode());
final java.lang.Object $destApp = this.getDestApp();
result = result * PRIME + ($destApp == null ? 43 : $destApp.hashCode());
final java.lang.Object $mappings = this.getMappings();
result = result * PRIME + ($mappings == null ? 43 : $mappings.hashCode());
final java.lang.Object $entities = this.getEntities();
result = result * PRIME + ($entities == null ? 43 : $entities.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "AppAction(name=" + this.getName() + ", id=" + this.getId() + ", index=" + this.getIndex() + ", destApp=" + this.getDestApp() + ", mappings=" + this.getMappings() + ", entities=" + this.getEntities() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy