com.squareup.connect.models.UpdateItemModifierListsRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connect Show documentation
Show all versions of connect Show documentation
Java client library for the Square Connect API
/*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class UpdateItemModifierListsRequest {
@JsonProperty("item_ids")
private List itemIds = new ArrayList();
@JsonProperty("modifier_lists_to_enable")
private List modifierListsToEnable = new ArrayList();
@JsonProperty("modifier_lists_to_disable")
private List modifierListsToDisable = new ArrayList();
public UpdateItemModifierListsRequest itemIds(List itemIds) {
this.itemIds = itemIds;
return this;
}
public UpdateItemModifierListsRequest addItemIdsItem(String itemIdsItem) {
this.itemIds.add(itemIdsItem);
return this;
}
/**
* The [CatalogItem](#type-catalogitem)s whose [CatalogModifierList](#type-catalogmodifierlist)s are being updated.
* @return itemIds
**/
@ApiModelProperty(required = true, value = "The [CatalogItem](#type-catalogitem)s whose [CatalogModifierList](#type-catalogmodifierlist)s are being updated.")
public List getItemIds() {
return itemIds;
}
public void setItemIds(List itemIds) {
this.itemIds = itemIds;
}
public UpdateItemModifierListsRequest modifierListsToEnable(List modifierListsToEnable) {
this.modifierListsToEnable = modifierListsToEnable;
return this;
}
public UpdateItemModifierListsRequest addModifierListsToEnableItem(String modifierListsToEnableItem) {
this.modifierListsToEnable.add(modifierListsToEnableItem);
return this;
}
/**
* The set of [CatalogModifierList](#type-catalogmodifierlist)s (referenced by ID) to enable for the [CatalogItem](#type-catalogitem).
* @return modifierListsToEnable
**/
@ApiModelProperty(value = "The set of [CatalogModifierList](#type-catalogmodifierlist)s (referenced by ID) to enable for the [CatalogItem](#type-catalogitem).")
public List getModifierListsToEnable() {
return modifierListsToEnable;
}
public void setModifierListsToEnable(List modifierListsToEnable) {
this.modifierListsToEnable = modifierListsToEnable;
}
public UpdateItemModifierListsRequest modifierListsToDisable(List modifierListsToDisable) {
this.modifierListsToDisable = modifierListsToDisable;
return this;
}
public UpdateItemModifierListsRequest addModifierListsToDisableItem(String modifierListsToDisableItem) {
this.modifierListsToDisable.add(modifierListsToDisableItem);
return this;
}
/**
* The set of [CatalogModifierList](#type-catalogmodifierlist)s (referenced by ID) to disable for the [CatalogItem](#type-catalogitem).
* @return modifierListsToDisable
**/
@ApiModelProperty(value = "The set of [CatalogModifierList](#type-catalogmodifierlist)s (referenced by ID) to disable for the [CatalogItem](#type-catalogitem).")
public List getModifierListsToDisable() {
return modifierListsToDisable;
}
public void setModifierListsToDisable(List modifierListsToDisable) {
this.modifierListsToDisable = modifierListsToDisable;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpdateItemModifierListsRequest updateItemModifierListsRequest = (UpdateItemModifierListsRequest) o;
return Objects.equals(this.itemIds, updateItemModifierListsRequest.itemIds) &&
Objects.equals(this.modifierListsToEnable, updateItemModifierListsRequest.modifierListsToEnable) &&
Objects.equals(this.modifierListsToDisable, updateItemModifierListsRequest.modifierListsToDisable);
}
@Override
public int hashCode() {
return Objects.hash(itemIds, modifierListsToEnable, modifierListsToDisable);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateItemModifierListsRequest {\n");
sb.append(" itemIds: ").append(toIndentedString(itemIds)).append("\n");
sb.append(" modifierListsToEnable: ").append(toIndentedString(modifierListsToEnable)).append("\n");
sb.append(" modifierListsToDisable: ").append(toIndentedString(modifierListsToDisable)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}