com.ziqni.admin.sdk.model.UpdateApiKeyRequestAllOf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ziqni-admin-sdk Show documentation
Show all versions of ziqni-admin-sdk Show documentation
ZIQNI Admin SDK Java Client
/*
* ZIQNI Admin API
* Ziqni Application Services are used to manage and configure spaces. Change log: 2024-02-27 Added rewards reduced to the LeaderboardEntry response
*
* The version of the OpenAPI document: 3.0.17
* 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 com.ziqni.admin.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.ziqni.admin.sdk.model.Role;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* UpdateApiKeyRequestAllOf
*/
@JsonPropertyOrder({
UpdateApiKeyRequestAllOf.JSON_PROPERTY_DESCRIPTION,
UpdateApiKeyRequestAllOf.JSON_PROPERTY_WHITE_LIST_I_PS,
UpdateApiKeyRequestAllOf.JSON_PROPERTY_KEY,
UpdateApiKeyRequestAllOf.JSON_PROPERTY_ROLE,
UpdateApiKeyRequestAllOf.JSON_PROPERTY_ADD_CONSTRAINTS,
UpdateApiKeyRequestAllOf.JSON_PROPERTY_REMOVE_CONSTRAINTS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class UpdateApiKeyRequestAllOf {
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;
public static final String JSON_PROPERTY_WHITE_LIST_I_PS = "whiteListIPs";
private List whiteListIPs = null;
public static final String JSON_PROPERTY_KEY = "key";
private String key;
public static final String JSON_PROPERTY_ROLE = "role";
private Role role;
public static final String JSON_PROPERTY_ADD_CONSTRAINTS = "addConstraints";
private List addConstraints = null;
public static final String JSON_PROPERTY_REMOVE_CONSTRAINTS = "removeConstraints";
private List removeConstraints = null;
public UpdateApiKeyRequestAllOf description(String description) {
this.description = description;
return this;
}
/**
* The description of an Api key
* @return description
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "User api key", value = "The description of an Api key")
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescription() {
return description;
}
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDescription(String description) {
this.description = description;
}
public UpdateApiKeyRequestAllOf whiteListIPs(List whiteListIPs) {
this.whiteListIPs = whiteListIPs;
return this;
}
public UpdateApiKeyRequestAllOf addWhiteListIPsItem(String whiteListIPsItem) {
if (this.whiteListIPs == null) {
this.whiteListIPs = new ArrayList<>();
}
this.whiteListIPs.add(whiteListIPsItem);
return this;
}
/**
* the IP's that need to be whitelisted with the Api key
* @return whiteListIPs
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "[\"123.221.22.1\",\"333.224.34.1\"]", value = "the IP's that need to be whitelisted with the Api key")
@JsonProperty(JSON_PROPERTY_WHITE_LIST_I_PS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getWhiteListIPs() {
return whiteListIPs;
}
@JsonProperty(JSON_PROPERTY_WHITE_LIST_I_PS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setWhiteListIPs(List whiteListIPs) {
this.whiteListIPs = whiteListIPs;
}
/**
* An Api key hash
* @return key
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "UUID.randomUUID.toString.replace", value = "An Api key hash")
@JsonProperty(JSON_PROPERTY_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getKey() {
return key;
}
public UpdateApiKeyRequestAllOf role(Role role) {
this.role = role;
return this;
}
/**
* Get role
* @return role
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ROLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Role getRole() {
return role;
}
@JsonProperty(JSON_PROPERTY_ROLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRole(Role role) {
this.role = role;
}
public UpdateApiKeyRequestAllOf addConstraints(List addConstraints) {
this.addConstraints = addConstraints;
return this;
}
public UpdateApiKeyRequestAllOf addAddConstraintsItem(String addConstraintsItem) {
if (this.addConstraints == null) {
this.addConstraints = new ArrayList<>();
}
this.addConstraints.add(addConstraintsItem);
return this;
}
/**
* Additional constraints
* @return addConstraints
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "- active - default", value = "Additional constraints")
@JsonProperty(JSON_PROPERTY_ADD_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getAddConstraints() {
return addConstraints;
}
@JsonProperty(JSON_PROPERTY_ADD_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAddConstraints(List addConstraints) {
this.addConstraints = addConstraints;
}
public UpdateApiKeyRequestAllOf removeConstraints(List removeConstraints) {
this.removeConstraints = removeConstraints;
return this;
}
public UpdateApiKeyRequestAllOf addRemoveConstraintsItem(String removeConstraintsItem) {
if (this.removeConstraints == null) {
this.removeConstraints = new ArrayList<>();
}
this.removeConstraints.add(removeConstraintsItem);
return this;
}
/**
* Additional constraints
* @return removeConstraints
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "- active - default", value = "Additional constraints")
@JsonProperty(JSON_PROPERTY_REMOVE_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getRemoveConstraints() {
return removeConstraints;
}
@JsonProperty(JSON_PROPERTY_REMOVE_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRemoveConstraints(List removeConstraints) {
this.removeConstraints = removeConstraints;
}
/**
* Return true if this UpdateApiKeyRequest_allOf object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpdateApiKeyRequestAllOf updateApiKeyRequestAllOf = (UpdateApiKeyRequestAllOf) o;
return Objects.equals(this.description, updateApiKeyRequestAllOf.description) &&
Objects.equals(this.whiteListIPs, updateApiKeyRequestAllOf.whiteListIPs) &&
Objects.equals(this.key, updateApiKeyRequestAllOf.key) &&
Objects.equals(this.role, updateApiKeyRequestAllOf.role) &&
Objects.equals(this.addConstraints, updateApiKeyRequestAllOf.addConstraints) &&
Objects.equals(this.removeConstraints, updateApiKeyRequestAllOf.removeConstraints);
}
@Override
public int hashCode() {
return Objects.hash(description, whiteListIPs, key, role, addConstraints, removeConstraints);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateApiKeyRequestAllOf {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" whiteListIPs: ").append(toIndentedString(whiteListIPs)).append("\n");
sb.append(" key: ").append(toIndentedString(key)).append("\n");
sb.append(" role: ").append(toIndentedString(role)).append("\n");
sb.append(" addConstraints: ").append(toIndentedString(addConstraints)).append("\n");
sb.append(" removeConstraints: ").append(toIndentedString(removeConstraints)).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 - 2025 Weber Informatics LLC | Privacy Policy