![JAR search and dependency download from the Maven repository](/logo.png)
io.github.jfermat.strava.model.SummaryGear Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of strava-api-client-resttemplate Show documentation
Show all versions of strava-api-client-resttemplate Show documentation
Strava's API client with RestTemplate's library.
/*
* Strava API v3
* The [Swagger Playground](https://developers.strava.com/playground) is the easiest way to familiarize yourself with the Strava API by submitting HTTP requests and observing the responses before you write any client code. It will show what a response will look like with different endpoints depending on the authorization scope you receive from your athletes. To use the Playground, go to https://www.strava.com/settings/api and change your “Authorization Callback Domain” to developers.strava.com. Please note, we only support Swagger 2.0. There is a known issue where you can only select one scope at a time. For more information, please check the section “client code” at https://developers.strava.com/docs.
*
* OpenAPI spec version: 3.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.github.jfermat.strava.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* SummaryGear
*/
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2021-01-10T09:15:14.081+01:00[Europe/Paris]")
public class SummaryGear {
@JsonProperty("id")
private String id = null;
@JsonProperty("resource_state")
private Integer resourceState = null;
@JsonProperty("primary")
private Boolean primary = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("distance")
private Float distance = null;
public SummaryGear id(String id) {
this.id = id;
return this;
}
/**
* The gear's unique identifier.
* @return id
**/
@Schema(description = "The gear's unique identifier.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public SummaryGear resourceState(Integer resourceState) {
this.resourceState = resourceState;
return this;
}
/**
* Resource state, indicates level of detail. Possible values: 2 -> \"summary\", 3 -> \"detail\"
* @return resourceState
**/
@Schema(description = "Resource state, indicates level of detail. Possible values: 2 -> \"summary\", 3 -> \"detail\"")
public Integer getResourceState() {
return resourceState;
}
public void setResourceState(Integer resourceState) {
this.resourceState = resourceState;
}
public SummaryGear primary(Boolean primary) {
this.primary = primary;
return this;
}
/**
* Whether this gear's is the owner's default one.
* @return primary
**/
@Schema(description = "Whether this gear's is the owner's default one.")
public Boolean isPrimary() {
return primary;
}
public void setPrimary(Boolean primary) {
this.primary = primary;
}
public SummaryGear name(String name) {
this.name = name;
return this;
}
/**
* The gear's name.
* @return name
**/
@Schema(description = "The gear's name.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public SummaryGear distance(Float distance) {
this.distance = distance;
return this;
}
/**
* The distance logged with this gear.
* @return distance
**/
@Schema(description = "The distance logged with this gear.")
public Float getDistance() {
return distance;
}
public void setDistance(Float distance) {
this.distance = distance;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SummaryGear summaryGear = (SummaryGear) o;
return Objects.equals(this.id, summaryGear.id) &&
Objects.equals(this.resourceState, summaryGear.resourceState) &&
Objects.equals(this.primary, summaryGear.primary) &&
Objects.equals(this.name, summaryGear.name) &&
Objects.equals(this.distance, summaryGear.distance);
}
@Override
public int hashCode() {
return Objects.hash(id, resourceState, primary, name, distance);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SummaryGear {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" resourceState: ").append(toIndentedString(resourceState)).append("\n");
sb.append(" primary: ").append(toIndentedString(primary)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" distance: ").append(toIndentedString(distance)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy