net.finmath.smartcontract.model.InitialSettlementResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-smart-derivative-contract Show documentation
Show all versions of finmath-smart-derivative-contract Show documentation
Project to support the implementation a of smart derivative contract.
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;
/**
* InitialSettlementResult
*/
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-05T10:54:28.421239+01:00[Europe/Berlin]")
public class InitialSettlementResult {
@JsonProperty("marginValue")
private BigDecimal marginValue;
@JsonProperty("currency")
private String currency;
@JsonProperty("valuationDate")
private String valuationDate;
@JsonProperty("generatedInitialSettlement")
private String generatedInitialSettlement;
public InitialSettlementResult 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 InitialSettlementResult 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 InitialSettlementResult 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 InitialSettlementResult generatedInitialSettlement(String generatedInitialSettlement) {
this.generatedInitialSettlement = generatedInitialSettlement;
return this;
}
/**
* Get generatedInitialSettlement
* @return generatedInitialSettlement
*/
@NotNull
@Schema(name = "generatedInitialSettlement", requiredMode = Schema.RequiredMode.REQUIRED)
public String getGeneratedInitialSettlement() {
return generatedInitialSettlement;
}
public void setGeneratedInitialSettlement(String generatedInitialSettlement) {
this.generatedInitialSettlement = generatedInitialSettlement;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
InitialSettlementResult initialSettlementResult = (InitialSettlementResult) o;
return Objects.equals(this.marginValue, initialSettlementResult.marginValue) &&
Objects.equals(this.currency, initialSettlementResult.currency) &&
Objects.equals(this.valuationDate, initialSettlementResult.valuationDate) &&
Objects.equals(this.generatedInitialSettlement, initialSettlementResult.generatedInitialSettlement);
}
@Override
public int hashCode() {
return Objects.hash(marginValue, currency, valuationDate, generatedInitialSettlement);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InitialSettlementResult {\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(" generatedInitialSettlement: ").append(toIndentedString(generatedInitialSettlement)).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