com.ziqni.admin.sdk.model.CreateApiKeyRequestAllOf 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;
/**
* CreateApiKeyRequestAllOf
*/
@JsonPropertyOrder({
CreateApiKeyRequestAllOf.JSON_PROPERTY_DESCRIPTION,
CreateApiKeyRequestAllOf.JSON_PROPERTY_WHITE_LIST_I_PS,
CreateApiKeyRequestAllOf.JSON_PROPERTY_ROLE,
CreateApiKeyRequestAllOf.JSON_PROPERTY_ADD_CONSTRAINTS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CreateApiKeyRequestAllOf {
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_ROLE = "role";
private Role role;
public static final String JSON_PROPERTY_ADD_CONSTRAINTS = "addConstraints";
private List addConstraints = null;
public CreateApiKeyRequestAllOf 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 CreateApiKeyRequestAllOf whiteListIPs(List whiteListIPs) {
this.whiteListIPs = whiteListIPs;
return this;
}
public CreateApiKeyRequestAllOf 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;
}
public CreateApiKeyRequestAllOf role(Role role) {
this.role = role;
return this;
}
/**
* Get role
* @return role
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_ROLE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Role getRole() {
return role;
}
@JsonProperty(JSON_PROPERTY_ROLE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRole(Role role) {
this.role = role;
}
public CreateApiKeyRequestAllOf addConstraints(List addConstraints) {
this.addConstraints = addConstraints;
return this;
}
public CreateApiKeyRequestAllOf 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;
}
/**
* Return true if this CreateApiKeyRequest_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;
}
CreateApiKeyRequestAllOf createApiKeyRequestAllOf = (CreateApiKeyRequestAllOf) o;
return Objects.equals(this.description, createApiKeyRequestAllOf.description) &&
Objects.equals(this.whiteListIPs, createApiKeyRequestAllOf.whiteListIPs) &&
Objects.equals(this.role, createApiKeyRequestAllOf.role) &&
Objects.equals(this.addConstraints, createApiKeyRequestAllOf.addConstraints);
}
@Override
public int hashCode() {
return Objects.hash(description, whiteListIPs, role, addConstraints);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateApiKeyRequestAllOf {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" whiteListIPs: ").append(toIndentedString(whiteListIPs)).append("\n");
sb.append(" role: ").append(toIndentedString(role)).append("\n");
sb.append(" addConstraints: ").append(toIndentedString(addConstraints)).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