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

com.factset.sdk.FactSetTrading.models.EMSOrdersCreateResponse Maven / Gradle / Ivy

/*
 * EMS API
 * Allow clients to trade orders.
 *
 * The version of the OpenAPI document: 1
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.factset.sdk.FactSetTrading.models;

import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.factset.sdk.FactSetTrading.models.EMSOrderMetadata;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.factset.sdk.FactSetTrading.JSON;


/**
 * EMSOrdersCreateResponse
 */
@JsonPropertyOrder({
  EMSOrdersCreateResponse.JSON_PROPERTY_ACCEPTED,
  EMSOrdersCreateResponse.JSON_PROPERTY_REJECTED
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EMSOrdersCreateResponse implements Serializable {
  private static final long serialVersionUID = 1L;

  public static final String JSON_PROPERTY_ACCEPTED = "accepted";
  private java.util.Map accepted = null;

  public static final String JSON_PROPERTY_REJECTED = "rejected";
  private java.util.Map rejected = null;

  public EMSOrdersCreateResponse() { 
  }

  public EMSOrdersCreateResponse accepted(java.util.Map accepted) {
    this.accepted = accepted;
    return this;
  }

  public EMSOrdersCreateResponse putAcceptedItem(String key, EMSOrderMetadata acceptedItem) {
    if (this.accepted == null) {
      this.accepted = new java.util.HashMap<>();
    }
    this.accepted.put(key, acceptedItem);
    return this;
  }

   /**
   * Get accepted
   * @return accepted
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_ACCEPTED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public java.util.Map getAccepted() {
    return accepted;
  }


  @JsonProperty(JSON_PROPERTY_ACCEPTED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAccepted(java.util.Map accepted) {
    this.accepted = accepted;
  }


  public EMSOrdersCreateResponse rejected(java.util.Map rejected) {
    this.rejected = rejected;
    return this;
  }

  public EMSOrdersCreateResponse putRejectedItem(String key, EMSOrderMetadata rejectedItem) {
    if (this.rejected == null) {
      this.rejected = new java.util.HashMap<>();
    }
    this.rejected.put(key, rejectedItem);
    return this;
  }

   /**
   * Get rejected
   * @return rejected
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_REJECTED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public java.util.Map getRejected() {
    return rejected;
  }


  @JsonProperty(JSON_PROPERTY_REJECTED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRejected(java.util.Map rejected) {
    this.rejected = rejected;
  }


  /**
   * Return true if this EMSOrdersCreateResponse object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EMSOrdersCreateResponse emSOrdersCreateResponse = (EMSOrdersCreateResponse) o;
    return Objects.equals(this.accepted, emSOrdersCreateResponse.accepted) &&
        Objects.equals(this.rejected, emSOrdersCreateResponse.rejected);
  }

  @Override
  public int hashCode() {
    return Objects.hash(accepted, rejected);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EMSOrdersCreateResponse {\n");
    sb.append("    accepted: ").append(toIndentedString(accepted)).append("\n");
    sb.append("    rejected: ").append(toIndentedString(rejected)).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 - 2024 Weber Informatics LLC | Privacy Policy