
com.squareup.square.legacy.models.BulkDeleteCustomersRequest Maven / Gradle / Ivy
package com.squareup.square.legacy.models;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Objects;
/**
* This is a model class for BulkDeleteCustomersRequest type.
*/
public class BulkDeleteCustomersRequest {
private final List customerIds;
/**
* Initialization constructor.
* @param customerIds List of String value for customerIds.
*/
@JsonCreator
public BulkDeleteCustomersRequest(@JsonProperty("customer_ids") List customerIds) {
this.customerIds = customerIds;
}
/**
* Getter for CustomerIds.
* The IDs of the [customer profiles](entity:Customer) to delete.
* @return Returns the List of String
*/
@JsonGetter("customer_ids")
public List getCustomerIds() {
return customerIds;
}
@Override
public int hashCode() {
return Objects.hash(customerIds);
}
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof BulkDeleteCustomersRequest)) {
return false;
}
BulkDeleteCustomersRequest other = (BulkDeleteCustomersRequest) obj;
return Objects.equals(customerIds, other.customerIds);
}
/**
* Converts this BulkDeleteCustomersRequest into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "BulkDeleteCustomersRequest [" + "customerIds=" + customerIds + "]";
}
/**
* Builds a new {@link BulkDeleteCustomersRequest.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link BulkDeleteCustomersRequest.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder(customerIds);
return builder;
}
/**
* Class to build instances of {@link BulkDeleteCustomersRequest}.
*/
public static class Builder {
private List customerIds;
/**
* Initialization constructor.
* @param customerIds List of String value for customerIds.
*/
public Builder(List customerIds) {
this.customerIds = customerIds;
}
/**
* Setter for customerIds.
* @param customerIds List of String value for customerIds.
* @return Builder
*/
public Builder customerIds(List customerIds) {
this.customerIds = customerIds;
return this;
}
/**
* Builds a new {@link BulkDeleteCustomersRequest} object using the set fields.
* @return {@link BulkDeleteCustomersRequest}
*/
public BulkDeleteCustomersRequest build() {
return new BulkDeleteCustomersRequest(customerIds);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy