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

net.finmath.smartcontract.model.RegularSettlementResult Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
package net.finmath.smartcontract.model;

import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.math.BigDecimal;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import jakarta.validation.Valid;
import jakarta.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;


import java.util.*;
import jakarta.annotation.Generated;

/**
 * RegularSettlementResult
 */

@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-05T10:54:28.421239+01:00[Europe/Berlin]")
public class RegularSettlementResult {

  @JsonProperty("marginValue")
  private BigDecimal marginValue;

  @JsonProperty("currency")
  private String currency;

  @JsonProperty("valuationDate")
  private String valuationDate;

  @JsonProperty("generatedRegularSettlement")
  private String generatedRegularSettlement;

  public RegularSettlementResult marginValue(BigDecimal marginValue) {
    this.marginValue = marginValue;
    return this;
  }

  /**
   * Get marginValue
   * @return marginValue
  */
  @NotNull @Valid 
  @Schema(name = "marginValue", requiredMode = Schema.RequiredMode.REQUIRED)
  public BigDecimal getMarginValue() {
    return marginValue;
  }

  public void setMarginValue(BigDecimal marginValue) {
    this.marginValue = marginValue;
  }

  public RegularSettlementResult currency(String currency) {
    this.currency = currency;
    return this;
  }

  /**
   * Get currency
   * @return currency
  */
  @NotNull 
  @Schema(name = "currency", requiredMode = Schema.RequiredMode.REQUIRED)
  public String getCurrency() {
    return currency;
  }

  public void setCurrency(String currency) {
    this.currency = currency;
  }

  public RegularSettlementResult valuationDate(String valuationDate) {
    this.valuationDate = valuationDate;
    return this;
  }

  /**
   * Get valuationDate
   * @return valuationDate
  */
  @NotNull 
  @Schema(name = "valuationDate", requiredMode = Schema.RequiredMode.REQUIRED)
  public String getValuationDate() {
    return valuationDate;
  }

  public void setValuationDate(String valuationDate) {
    this.valuationDate = valuationDate;
  }

  public RegularSettlementResult generatedRegularSettlement(String generatedRegularSettlement) {
    this.generatedRegularSettlement = generatedRegularSettlement;
    return this;
  }

  /**
   * Get generatedRegularSettlement
   * @return generatedRegularSettlement
  */
  @NotNull 
  @Schema(name = "generatedRegularSettlement", requiredMode = Schema.RequiredMode.REQUIRED)
  public String getGeneratedRegularSettlement() {
    return generatedRegularSettlement;
  }

  public void setGeneratedRegularSettlement(String generatedRegularSettlement) {
    this.generatedRegularSettlement = generatedRegularSettlement;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    RegularSettlementResult regularSettlementResult = (RegularSettlementResult) o;
    return Objects.equals(this.marginValue, regularSettlementResult.marginValue) &&
        Objects.equals(this.currency, regularSettlementResult.currency) &&
        Objects.equals(this.valuationDate, regularSettlementResult.valuationDate) &&
        Objects.equals(this.generatedRegularSettlement, regularSettlementResult.generatedRegularSettlement);
  }

  @Override
  public int hashCode() {
    return Objects.hash(marginValue, currency, valuationDate, generatedRegularSettlement);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RegularSettlementResult {\n");
    sb.append("    marginValue: ").append(toIndentedString(marginValue)).append("\n");
    sb.append("    currency: ").append(toIndentedString(currency)).append("\n");
    sb.append("    valuationDate: ").append(toIndentedString(valuationDate)).append("\n");
    sb.append("    generatedRegularSettlement: ").append(toIndentedString(generatedRegularSettlement)).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