io.service84.clients.permission.dto.ScopeDTO Maven / Gradle / Ivy
The newest version!
/*
* Permission Service
* Manage Permissions
*
* 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.service84.clients.permission.dto;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.service84.clients.permission.dto.ScopeAllOfDTO;
import io.service84.clients.permission.dto.ScopeDataDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.UUID;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ScopeDTO
*/
@JsonPropertyOrder({
ScopeDTO.JSON_PROPERTY_NAMESPACE,
ScopeDTO.JSON_PROPERTY_NAME,
ScopeDTO.JSON_PROPERTY_ID
})
public class ScopeDTO {
public static final String JSON_PROPERTY_NAMESPACE = "namespace";
private String namespace;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_ID = "id";
private UUID id;
public ScopeDTO namespace(String namespace) {
this.namespace = namespace;
return this;
}
/**
* Get namespace
* @return namespace
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getNamespace() {
return namespace;
}
public void setNamespace(String namespace) {
this.namespace = namespace;
}
public ScopeDTO name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ScopeDTO id(UUID id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UUID getId() {
return id;
}
public void setId(UUID id) {
this.id = id;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ScopeDTO scope = (ScopeDTO) o;
return Objects.equals(this.namespace, scope.namespace) &&
Objects.equals(this.name, scope.name) &&
Objects.equals(this.id, scope.id);
}
@Override
public int hashCode() {
return Objects.hash(namespace, name, id);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ScopeDTO {\n");
sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy