com.squareup.square.models.BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of square Show documentation
Show all versions of square Show documentation
Java client library for the Square API
package com.squareup.square.models;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* This is a model class for BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest type.
*/
public class BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest {
private final String key;
/**
* Initialization constructor.
* @param key String value for key.
*/
@JsonCreator
public BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest(
@JsonProperty("key") String key) {
this.key = key;
}
/**
* Getter for Key.
* The key of the associated custom attribute definition. Represented as a qualified key if the
* requesting app is not the definition owner.
* @return Returns the String
*/
@JsonGetter("key")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getKey() {
return key;
}
@Override
public int hashCode() {
return Objects.hash(key);
}
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest)) {
return false;
}
BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest other =
(BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest) obj;
return Objects.equals(key, other.key);
}
/**
* Converts this BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest ["
+ "key=" + key + "]";
}
/**
* Builds a new {@link BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.key(getKey());
return builder;
}
/**
* Class to build instances of {@link BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest}.
*/
public static class Builder {
private String key;
/**
* Setter for key.
* @param key String value for key.
* @return Builder
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* Builds a new {@link
* BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest} object
* using the set fields.
* @return {@link BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest}
*/
public BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest build() {
return new BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest(
key);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy