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

net.rrworld.henrikval.gen.model.BundleRaw Maven / Gradle / Ivy

The newest version!
package net.rrworld.henrikval.gen.model;

import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import net.rrworld.henrikval.gen.model.BundleRawItemsInner;
import java.time.OffsetDateTime;
import javax.validation.Valid;
import javax.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;


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

/**
 * BundleRaw
 */

@JsonTypeName("bundle_raw")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-26T19:32:28.190871Z[Etc/UTC]", comments = "Generator version: 7.8.0")
public class BundleRaw {

  private String ID;

  private String dataAssetID;

  private String currencyID;

  @Valid
  private List<@Valid BundleRawItemsInner> items = new ArrayList<>();

  private Integer durationRemainingInSeconds;

  private Boolean wholesaleonly;

  public BundleRaw ID(String ID) {
    this.ID = ID;
    return this;
  }

  /**
   * Get ID
   * @return ID
   */
  
  @Schema(name = "ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("ID")
  public String getID() {
    return ID;
  }

  public void setID(String ID) {
    this.ID = ID;
  }

  public BundleRaw dataAssetID(String dataAssetID) {
    this.dataAssetID = dataAssetID;
    return this;
  }

  /**
   * Get dataAssetID
   * @return dataAssetID
   */
  
  @Schema(name = "DataAssetID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("DataAssetID")
  public String getDataAssetID() {
    return dataAssetID;
  }

  public void setDataAssetID(String dataAssetID) {
    this.dataAssetID = dataAssetID;
  }

  public BundleRaw currencyID(String currencyID) {
    this.currencyID = currencyID;
    return this;
  }

  /**
   * Get currencyID
   * @return currencyID
   */
  
  @Schema(name = "CurrencyID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("CurrencyID")
  public String getCurrencyID() {
    return currencyID;
  }

  public void setCurrencyID(String currencyID) {
    this.currencyID = currencyID;
  }

  public BundleRaw items(List<@Valid BundleRawItemsInner> items) {
    this.items = items;
    return this;
  }

  public BundleRaw addItemsItem(BundleRawItemsInner itemsItem) {
    if (this.items == null) {
      this.items = new ArrayList<>();
    }
    this.items.add(itemsItem);
    return this;
  }

  /**
   * Get items
   * @return items
   */
  @Valid 
  @Schema(name = "Items", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("Items")
  public List<@Valid BundleRawItemsInner> getItems() {
    return items;
  }

  public void setItems(List<@Valid BundleRawItemsInner> items) {
    this.items = items;
  }

  public BundleRaw durationRemainingInSeconds(Integer durationRemainingInSeconds) {
    this.durationRemainingInSeconds = durationRemainingInSeconds;
    return this;
  }

  /**
   * Get durationRemainingInSeconds
   * @return durationRemainingInSeconds
   */
  
  @Schema(name = "DurationRemainingInSeconds", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("DurationRemainingInSeconds")
  public Integer getDurationRemainingInSeconds() {
    return durationRemainingInSeconds;
  }

  public void setDurationRemainingInSeconds(Integer durationRemainingInSeconds) {
    this.durationRemainingInSeconds = durationRemainingInSeconds;
  }

  public BundleRaw wholesaleonly(Boolean wholesaleonly) {
    this.wholesaleonly = wholesaleonly;
    return this;
  }

  /**
   * Get wholesaleonly
   * @return wholesaleonly
   */
  
  @Schema(name = "Wholesaleonly", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("Wholesaleonly")
  public Boolean getWholesaleonly() {
    return wholesaleonly;
  }

  public void setWholesaleonly(Boolean wholesaleonly) {
    this.wholesaleonly = wholesaleonly;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BundleRaw bundleRaw = (BundleRaw) o;
    return Objects.equals(this.ID, bundleRaw.ID) &&
        Objects.equals(this.dataAssetID, bundleRaw.dataAssetID) &&
        Objects.equals(this.currencyID, bundleRaw.currencyID) &&
        Objects.equals(this.items, bundleRaw.items) &&
        Objects.equals(this.durationRemainingInSeconds, bundleRaw.durationRemainingInSeconds) &&
        Objects.equals(this.wholesaleonly, bundleRaw.wholesaleonly);
  }

  @Override
  public int hashCode() {
    return Objects.hash(ID, dataAssetID, currencyID, items, durationRemainingInSeconds, wholesaleonly);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BundleRaw {\n");
    sb.append("    ID: ").append(toIndentedString(ID)).append("\n");
    sb.append("    dataAssetID: ").append(toIndentedString(dataAssetID)).append("\n");
    sb.append("    currencyID: ").append(toIndentedString(currencyID)).append("\n");
    sb.append("    items: ").append(toIndentedString(items)).append("\n");
    sb.append("    durationRemainingInSeconds: ").append(toIndentedString(durationRemainingInSeconds)).append("\n");
    sb.append("    wholesaleonly: ").append(toIndentedString(wholesaleonly)).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