All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Model.InlineResponse2003 Maven / Gradle / Ivy

There is a newer version: 0.0.72
Show newest version
/*
 * 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 Model.Notificationsubscriptionsv1webhooksNotificationScope;
import Model.Notificationsubscriptionsv1webhooksProducts;
import Model.Notificationsubscriptionsv1webhooksRetryPolicy;
import Model.Notificationsubscriptionsv1webhooksSecurityPolicy;
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 java.util.Map;

/**
 * InlineResponse2003
 */

public class InlineResponse2003 {
  @SerializedName("webhookId")
  private String webhookId = null;

  @SerializedName("organizationId")
  private String organizationId = null;

  @SerializedName("products")
  private List products = null;

  @SerializedName("webhookUrl")
  private String webhookUrl = null;

  @SerializedName("healthCheckUrl")
  private String healthCheckUrl = null;

  @SerializedName("notificationScope")
  private Notificationsubscriptionsv1webhooksNotificationScope notificationScope = null;

  @SerializedName("status")
  private String status = "INACTIVE";

  @SerializedName("name")
  private String name = null;

  @SerializedName("description")
  private String description = null;

  @SerializedName("retryPolicy")
  private Notificationsubscriptionsv1webhooksRetryPolicy retryPolicy = null;

  @SerializedName("securityPolicy")
  private Notificationsubscriptionsv1webhooksSecurityPolicy securityPolicy = null;

  @SerializedName("createdOn")
  private String createdOn = null;

  @SerializedName("updatedOn")
  private String updatedOn = null;

  @SerializedName("additionalAttributes")
  private List> additionalAttributes = null;

  public InlineResponse2003 webhookId(String webhookId) {
    this.webhookId = webhookId;
    return this;
  }

   /**
   * Webhook Id. This is generated by the server.
   * @return webhookId
  **/
  @ApiModelProperty(value = "Webhook Id. This is generated by the server.")
  public String getWebhookId() {
    return webhookId;
  }

  public void setWebhookId(String webhookId) {
    this.webhookId = webhookId;
  }

  public InlineResponse2003 organizationId(String organizationId) {
    this.organizationId = organizationId;
    return this;
  }

   /**
   * Organization ID.
   * @return organizationId
  **/
  @ApiModelProperty(value = "Organization ID.")
  public String getOrganizationId() {
    return organizationId;
  }

  public void setOrganizationId(String organizationId) {
    this.organizationId = organizationId;
  }

  public InlineResponse2003 products(List products) {
    this.products = products;
    return this;
  }

  public InlineResponse2003 addProductsItem(Notificationsubscriptionsv1webhooksProducts productsItem) {
    if (this.products == null) {
      this.products = new ArrayList();
    }
    this.products.add(productsItem);
    return this;
  }

   /**
   * Get products
   * @return products
  **/
  @ApiModelProperty(value = "")
  public List getProducts() {
    return products;
  }

  public void setProducts(List products) {
    this.products = products;
  }

  public InlineResponse2003 webhookUrl(String webhookUrl) {
    this.webhookUrl = webhookUrl;
    return this;
  }

   /**
   * The client's endpoint (URL) to receive webhooks.
   * @return webhookUrl
  **/
  @ApiModelProperty(value = "The client's endpoint (URL) to receive webhooks.")
  public String getWebhookUrl() {
    return webhookUrl;
  }

  public void setWebhookUrl(String webhookUrl) {
    this.webhookUrl = webhookUrl;
  }

  public InlineResponse2003 healthCheckUrl(String healthCheckUrl) {
    this.healthCheckUrl = healthCheckUrl;
    return this;
  }

   /**
   * The client's health check endpoint (URL). This should be as close as possible to the actual webhookUrl.
   * @return healthCheckUrl
  **/
  @ApiModelProperty(value = "The client's health check endpoint (URL). This should be as close as possible to the actual webhookUrl.")
  public String getHealthCheckUrl() {
    return healthCheckUrl;
  }

  public void setHealthCheckUrl(String healthCheckUrl) {
    this.healthCheckUrl = healthCheckUrl;
  }

  public InlineResponse2003 notificationScope(Notificationsubscriptionsv1webhooksNotificationScope notificationScope) {
    this.notificationScope = notificationScope;
    return this;
  }

   /**
   * Get notificationScope
   * @return notificationScope
  **/
  @ApiModelProperty(value = "")
  public Notificationsubscriptionsv1webhooksNotificationScope getNotificationScope() {
    return notificationScope;
  }

  public void setNotificationScope(Notificationsubscriptionsv1webhooksNotificationScope notificationScope) {
    this.notificationScope = notificationScope;
  }

  public InlineResponse2003 status(String status) {
    this.status = status;
    return this;
  }

   /**
   * Webhook status.
   * @return status
  **/
  @ApiModelProperty(value = "Webhook status.")
  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public InlineResponse2003 name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Client friendly webhook name.
   * @return name
  **/
  @ApiModelProperty(value = "Client friendly webhook name.")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public InlineResponse2003 description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Client friendly webhook description.
   * @return description
  **/
  @ApiModelProperty(value = "Client friendly webhook description.")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public InlineResponse2003 retryPolicy(Notificationsubscriptionsv1webhooksRetryPolicy retryPolicy) {
    this.retryPolicy = retryPolicy;
    return this;
  }

   /**
   * Get retryPolicy
   * @return retryPolicy
  **/
  @ApiModelProperty(value = "")
  public Notificationsubscriptionsv1webhooksRetryPolicy getRetryPolicy() {
    return retryPolicy;
  }

  public void setRetryPolicy(Notificationsubscriptionsv1webhooksRetryPolicy retryPolicy) {
    this.retryPolicy = retryPolicy;
  }

  public InlineResponse2003 securityPolicy(Notificationsubscriptionsv1webhooksSecurityPolicy securityPolicy) {
    this.securityPolicy = securityPolicy;
    return this;
  }

   /**
   * Get securityPolicy
   * @return securityPolicy
  **/
  @ApiModelProperty(value = "")
  public Notificationsubscriptionsv1webhooksSecurityPolicy getSecurityPolicy() {
    return securityPolicy;
  }

  public void setSecurityPolicy(Notificationsubscriptionsv1webhooksSecurityPolicy securityPolicy) {
    this.securityPolicy = securityPolicy;
  }

  public InlineResponse2003 createdOn(String createdOn) {
    this.createdOn = createdOn;
    return this;
  }

   /**
   * Date on which webhook was created/registered.
   * @return createdOn
  **/
  @ApiModelProperty(value = "Date on which webhook was created/registered.")
  public String getCreatedOn() {
    return createdOn;
  }

  public void setCreatedOn(String createdOn) {
    this.createdOn = createdOn;
  }

  public InlineResponse2003 updatedOn(String updatedOn) {
    this.updatedOn = updatedOn;
    return this;
  }

   /**
   * Date on which webhook was most recently updated.
   * @return updatedOn
  **/
  @ApiModelProperty(value = "Date on which webhook was most recently updated.")
  public String getUpdatedOn() {
    return updatedOn;
  }

  public void setUpdatedOn(String updatedOn) {
    this.updatedOn = updatedOn;
  }

  public InlineResponse2003 additionalAttributes(List> additionalAttributes) {
    this.additionalAttributes = additionalAttributes;
    return this;
  }

  public InlineResponse2003 addAdditionalAttributesItem(Map additionalAttributesItem) {
    if (this.additionalAttributes == null) {
      this.additionalAttributes = new ArrayList>();
    }
    this.additionalAttributes.add(additionalAttributesItem);
    return this;
  }

   /**
   * Additional, free form configuration data.
   * @return additionalAttributes
  **/
  @ApiModelProperty(value = "Additional, free form configuration data.")
  public List> getAdditionalAttributes() {
    return additionalAttributes;
  }

  public void setAdditionalAttributes(List> additionalAttributes) {
    this.additionalAttributes = additionalAttributes;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    InlineResponse2003 inlineResponse2003 = (InlineResponse2003) o;
    return Objects.equals(this.webhookId, inlineResponse2003.webhookId) &&
        Objects.equals(this.organizationId, inlineResponse2003.organizationId) &&
        Objects.equals(this.products, inlineResponse2003.products) &&
        Objects.equals(this.webhookUrl, inlineResponse2003.webhookUrl) &&
        Objects.equals(this.healthCheckUrl, inlineResponse2003.healthCheckUrl) &&
        Objects.equals(this.notificationScope, inlineResponse2003.notificationScope) &&
        Objects.equals(this.status, inlineResponse2003.status) &&
        Objects.equals(this.name, inlineResponse2003.name) &&
        Objects.equals(this.description, inlineResponse2003.description) &&
        Objects.equals(this.retryPolicy, inlineResponse2003.retryPolicy) &&
        Objects.equals(this.securityPolicy, inlineResponse2003.securityPolicy) &&
        Objects.equals(this.createdOn, inlineResponse2003.createdOn) &&
        Objects.equals(this.updatedOn, inlineResponse2003.updatedOn) &&
        Objects.equals(this.additionalAttributes, inlineResponse2003.additionalAttributes);
  }

  @Override
  public int hashCode() {
    return Objects.hash(webhookId, organizationId, products, webhookUrl, healthCheckUrl, notificationScope, status, name, description, retryPolicy, securityPolicy, createdOn, updatedOn, additionalAttributes);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class InlineResponse2003 {\n");
    
    sb.append("    webhookId: ").append(toIndentedString(webhookId)).append("\n");
    sb.append("    organizationId: ").append(toIndentedString(organizationId)).append("\n");
    sb.append("    products: ").append(toIndentedString(products)).append("\n");
    sb.append("    webhookUrl: ").append(toIndentedString(webhookUrl)).append("\n");
    sb.append("    healthCheckUrl: ").append(toIndentedString(healthCheckUrl)).append("\n");
    sb.append("    notificationScope: ").append(toIndentedString(notificationScope)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    retryPolicy: ").append(toIndentedString(retryPolicy)).append("\n");
    sb.append("    securityPolicy: ").append(toIndentedString(securityPolicy)).append("\n");
    sb.append("    createdOn: ").append(toIndentedString(createdOn)).append("\n");
    sb.append("    updatedOn: ").append(toIndentedString(updatedOn)).append("\n");
    sb.append("    additionalAttributes: ").append(toIndentedString(additionalAttributes)).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