io.harness.cf.model.FeatureSnapshot Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ff-java-server-sdk Show documentation
Show all versions of ff-java-server-sdk Show documentation
Harness Feature Flag Java Server SDK
The newest version!
/*
* Harness feature flag service client apis
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.harness.cf.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.harness.cf.model.FeatureConfig;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.io.Serializable;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
/**
* FeatureSnapshot
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T14:30:44.890314Z[GMT]")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FeatureSnapshot implements Serializable {
private static final long serialVersionUID = 1L;
public static final String SERIALIZED_NAME_CURRENT = "current";
@SerializedName(SERIALIZED_NAME_CURRENT)
private FeatureConfig current;
public static final String SERIALIZED_NAME_PREVIOUS = "previous";
@SerializedName(SERIALIZED_NAME_PREVIOUS)
private FeatureConfig previous;
public FeatureSnapshot current(FeatureConfig current) {
this.current = current;
return this;
}
/**
* Get current
* @return current
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public FeatureConfig getCurrent() {
return current;
}
public void setCurrent(FeatureConfig current) {
this.current = current;
}
public FeatureSnapshot previous(FeatureConfig previous) {
this.previous = previous;
return this;
}
/**
* Get previous
* @return previous
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public FeatureConfig getPrevious() {
return previous;
}
public void setPrevious(FeatureConfig previous) {
this.previous = previous;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FeatureSnapshot featureSnapshot = (FeatureSnapshot) o;
return Objects.equals(this.current, featureSnapshot.current) &&
Objects.equals(this.previous, featureSnapshot.previous);
}
@Override
public int hashCode() {
return Objects.hash(current, previous);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FeatureSnapshot {\n");
sb.append(" current: ").append(toIndentedString(current)).append("\n");
sb.append(" previous: ").append(toIndentedString(previous)).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