com.paypal.api.payments.TemplateSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-api-sdk Show documentation
Show all versions of rest-api-sdk Show documentation
PayPal SDK for integrating with the REST APIs
The newest version!
// Generated by delombok at Thu Nov 16 13:48:05 CST 2017
package com.paypal.api.payments;
import com.paypal.base.rest.PayPalModel;
public class TemplateSettings extends PayPalModel {
/**
* The field name (for any field in template_data) for which the corresponding display preferences will be mapped to.
*/
private String fieldName;
/**
* Settings metadata for each field.
*/
private TemplateSettingsMetadata displayPreference;
/**
* Default Constructor
*/
public TemplateSettings() {
}
/**
* The field name (for any field in template_data) for which the corresponding display preferences will be mapped to.
*/
@java.lang.SuppressWarnings("all")
public String getFieldName() {
return this.fieldName;
}
/**
* Settings metadata for each field.
*/
@java.lang.SuppressWarnings("all")
public TemplateSettingsMetadata getDisplayPreference() {
return this.displayPreference;
}
/**
* The field name (for any field in template_data) for which the corresponding display preferences will be mapped to.
* @return this
*/
@java.lang.SuppressWarnings("all")
public TemplateSettings setFieldName(final String fieldName) {
this.fieldName = fieldName;
return this;
}
/**
* Settings metadata for each field.
* @return this
*/
@java.lang.SuppressWarnings("all")
public TemplateSettings setDisplayPreference(final TemplateSettingsMetadata displayPreference) {
this.displayPreference = displayPreference;
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 TemplateSettings)) return false;
final TemplateSettings other = (TemplateSettings) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$fieldName = this.getFieldName();
final java.lang.Object other$fieldName = other.getFieldName();
if (this$fieldName == null ? other$fieldName != null : !this$fieldName.equals(other$fieldName)) return false;
final java.lang.Object this$displayPreference = this.getDisplayPreference();
final java.lang.Object other$displayPreference = other.getDisplayPreference();
if (this$displayPreference == null ? other$displayPreference != null : !this$displayPreference.equals(other$displayPreference)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof TemplateSettings;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
result = result * PRIME + super.hashCode();
final java.lang.Object $fieldName = this.getFieldName();
result = result * PRIME + ($fieldName == null ? 43 : $fieldName.hashCode());
final java.lang.Object $displayPreference = this.getDisplayPreference();
result = result * PRIME + ($displayPreference == null ? 43 : $displayPreference.hashCode());
return result;
}
}