io.harness.cf.model.AuthenticationRequestTarget 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.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;
/**
* AuthenticationRequestTarget
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T14:30:44.890314Z[GMT]")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AuthenticationRequestTarget implements Serializable {
private static final long serialVersionUID = 1L;
public static final String SERIALIZED_NAME_IDENTIFIER = "identifier";
@SerializedName(SERIALIZED_NAME_IDENTIFIER)
private String identifier;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_ANONYMOUS = "anonymous";
@SerializedName(SERIALIZED_NAME_ANONYMOUS)
private Boolean anonymous;
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
private Object attributes;
public AuthenticationRequestTarget identifier(String identifier) {
this.identifier = identifier;
return this;
}
/**
* Get identifier
* @return identifier
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
public String getIdentifier() {
return identifier;
}
public void setIdentifier(String identifier) {
this.identifier = identifier;
}
public AuthenticationRequestTarget name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public AuthenticationRequestTarget anonymous(Boolean anonymous) {
this.anonymous = anonymous;
return this;
}
/**
* Get anonymous
* @return anonymous
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getAnonymous() {
return anonymous;
}
public void setAnonymous(Boolean anonymous) {
this.anonymous = anonymous;
}
public AuthenticationRequestTarget attributes(Object attributes) {
this.attributes = attributes;
return this;
}
/**
* Get attributes
* @return attributes
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Object getAttributes() {
return attributes;
}
public void setAttributes(Object attributes) {
this.attributes = attributes;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AuthenticationRequestTarget authenticationRequestTarget = (AuthenticationRequestTarget) o;
return Objects.equals(this.identifier, authenticationRequestTarget.identifier) &&
Objects.equals(this.name, authenticationRequestTarget.name) &&
Objects.equals(this.anonymous, authenticationRequestTarget.anonymous) &&
Objects.equals(this.attributes, authenticationRequestTarget.attributes);
}
@Override
public int hashCode() {
return Objects.hash(identifier, name, anonymous, attributes);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AuthenticationRequestTarget {\n");
sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" anonymous: ").append(toIndentedString(anonymous)).append("\n");
sb.append(" attributes: ").append(toIndentedString(attributes)).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