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

net.rrworld.henrikval.gen.model.MatchRoundsInnerPlayerStatsInnerEconomyWeapon 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 net.rrworld.henrikval.gen.model.MatchRoundsInnerPlayerStatsInnerEconomyWeaponAssets;
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;

/**
 * MatchRoundsInnerPlayerStatsInnerEconomyWeapon
 */

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

  private String id;

  private String name;

  private MatchRoundsInnerPlayerStatsInnerEconomyWeaponAssets assets;

  public MatchRoundsInnerPlayerStatsInnerEconomyWeapon id(String id) {
    this.id = id;
    return this;
  }

  /**
   * Get id
   * @return id
   */
  
  @Schema(name = "id", example = "462080D1-4035-2937-7C09-27AA2A5C27A7", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("id")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

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

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

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

  public MatchRoundsInnerPlayerStatsInnerEconomyWeapon assets(MatchRoundsInnerPlayerStatsInnerEconomyWeaponAssets assets) {
    this.assets = assets;
    return this;
  }

  /**
   * Get assets
   * @return assets
   */
  @Valid 
  @Schema(name = "assets", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("assets")
  public MatchRoundsInnerPlayerStatsInnerEconomyWeaponAssets getAssets() {
    return assets;
  }

  public void setAssets(MatchRoundsInnerPlayerStatsInnerEconomyWeaponAssets assets) {
    this.assets = assets;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    MatchRoundsInnerPlayerStatsInnerEconomyWeapon matchRoundsInnerPlayerStatsInnerEconomyWeapon = (MatchRoundsInnerPlayerStatsInnerEconomyWeapon) o;
    return Objects.equals(this.id, matchRoundsInnerPlayerStatsInnerEconomyWeapon.id) &&
        Objects.equals(this.name, matchRoundsInnerPlayerStatsInnerEconomyWeapon.name) &&
        Objects.equals(this.assets, matchRoundsInnerPlayerStatsInnerEconomyWeapon.assets);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, name, assets);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class MatchRoundsInnerPlayerStatsInnerEconomyWeapon {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    assets: ").append(toIndentedString(assets)).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