org.openapitools.client.model.FulfillmentCreateBulkRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zuora-sdk-java Show documentation
Show all versions of zuora-sdk-java Show documentation
The SDK of JAVA language for Zuora pricing system
/*
* Quickstart API Reference
* Zuora Quickstart API is the API that helps you achieve fundamental use cases.
* It provides a much simplified object model and improved performance, enabling developers to easily learn and use.
*/
package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.openapitools.client.model.FulfillmentProcessingOption;
import org.openapitools.client.model.FulfillmentRequest;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* FulfillmentCreateBulkRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class FulfillmentCreateBulkRequest {
public static final String SERIALIZED_NAME_DATA = "data";
@SerializedName(SERIALIZED_NAME_DATA)
private List data = null;
public static final String SERIALIZED_NAME_PROCESSING_OPTIONS = "processing_options";
@SerializedName(SERIALIZED_NAME_PROCESSING_OPTIONS)
private FulfillmentProcessingOption processingOptions;
public FulfillmentCreateBulkRequest() {
}
public FulfillmentCreateBulkRequest data(List data) {
this.data = data;
return this;
}
public FulfillmentCreateBulkRequest addDataItem(FulfillmentRequest dataItem) {
if (this.data == null) {
this.data = new ArrayList();
}
this.data.add(dataItem);
return this;
}
/**
* Get data
* @return data
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getData() {
return data;
}
public void setData(List data) {
this.data = data;
}
public FulfillmentCreateBulkRequest processingOptions(FulfillmentProcessingOption processingOptions) {
this.processingOptions = processingOptions;
return this;
}
/**
* Get processingOptions
* @return processingOptions
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public FulfillmentProcessingOption getProcessingOptions() {
return processingOptions;
}
public void setProcessingOptions(FulfillmentProcessingOption processingOptions) {
this.processingOptions = processingOptions;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FulfillmentCreateBulkRequest fulfillmentCreateBulkRequest = (FulfillmentCreateBulkRequest) o;
return Objects.equals(this.data, fulfillmentCreateBulkRequest.data) &&
Objects.equals(this.processingOptions, fulfillmentCreateBulkRequest.processingOptions);
}
@Override
public int hashCode() {
return Objects.hash(data, processingOptions);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FulfillmentCreateBulkRequest {\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" processingOptions: ").append(toIndentedString(processingOptions)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy