io.harness.cf.model.AuthenticationRequest 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: cf@harness.io
*
* 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.AuthenticationRequestTarget;
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;
/**
* AuthenticationRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T14:30:44.890314Z[GMT]")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AuthenticationRequest implements Serializable {
private static final long serialVersionUID = 1L;
public static final String SERIALIZED_NAME_API_KEY = "apiKey";
@SerializedName(SERIALIZED_NAME_API_KEY)
private String apiKey;
public static final String SERIALIZED_NAME_TARGET = "target";
@SerializedName(SERIALIZED_NAME_TARGET)
private AuthenticationRequestTarget target;
public AuthenticationRequest apiKey(String apiKey) {
this.apiKey = apiKey;
return this;
}
/**
* Get apiKey
* @return apiKey
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "896045f3-42ee-4e73-9154-086644768b96", required = true, value = "")
public String getApiKey() {
return apiKey;
}
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
public AuthenticationRequest target(AuthenticationRequestTarget target) {
this.target = target;
return this;
}
/**
* Get target
* @return target
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public AuthenticationRequestTarget getTarget() {
return target;
}
public void setTarget(AuthenticationRequestTarget target) {
this.target = target;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AuthenticationRequest authenticationRequest = (AuthenticationRequest) o;
return Objects.equals(this.apiKey, authenticationRequest.apiKey) &&
Objects.equals(this.target, authenticationRequest.target);
}
@Override
public int hashCode() {
return Objects.hash(apiKey, target);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AuthenticationRequest {\n");
sb.append(" apiKey: ").append(toIndentedString(apiKey)).append("\n");
sb.append(" target: ").append(toIndentedString(target)).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 ");
}
}