
Model.Notificationsubscriptionsv2webhooksProducts Maven / Gradle / Ivy
/*
* CyberSource Merged Spec
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
*
* 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 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;
/**
* Notificationsubscriptionsv2webhooksProducts
*/
public class Notificationsubscriptionsv2webhooksProducts {
@SerializedName("productId")
private String productId = null;
@SerializedName("eventTypes")
private List eventTypes = null;
public Notificationsubscriptionsv2webhooksProducts productId(String productId) {
this.productId = productId;
return this;
}
/**
* Product ID.
* @return productId
**/
@ApiModelProperty(value = "Product ID.")
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
public Notificationsubscriptionsv2webhooksProducts eventTypes(List eventTypes) {
this.eventTypes = eventTypes;
return this;
}
public Notificationsubscriptionsv2webhooksProducts addEventTypesItem(String eventTypesItem) {
if (this.eventTypes == null) {
this.eventTypes = new ArrayList();
}
this.eventTypes.add(eventTypesItem);
return this;
}
/**
* Get eventTypes
* @return eventTypes
**/
@ApiModelProperty(value = "")
public List getEventTypes() {
return eventTypes;
}
public void setEventTypes(List eventTypes) {
this.eventTypes = eventTypes;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Notificationsubscriptionsv2webhooksProducts notificationsubscriptionsv2webhooksProducts = (Notificationsubscriptionsv2webhooksProducts) o;
return Objects.equals(this.productId, notificationsubscriptionsv2webhooksProducts.productId) &&
Objects.equals(this.eventTypes, notificationsubscriptionsv2webhooksProducts.eventTypes);
}
@Override
public int hashCode() {
return Objects.hash(productId, eventTypes);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Notificationsubscriptionsv2webhooksProducts {\n");
if (productId != null) sb.append(" productId: ").append(toIndentedString(productId)).append("\n");
if (eventTypes != null) sb.append(" eventTypes: ").append(toIndentedString(eventTypes)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy