
io.service84.clients.permission.dto.SubjectScopeDTO 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.SubjectScopeDataDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.UUID;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* SubjectScopeDTO
*/
@JsonPropertyOrder({
SubjectScopeDTO.JSON_PROPERTY_SUBJECT,
SubjectScopeDTO.JSON_PROPERTY_SCOPE_ID,
SubjectScopeDTO.JSON_PROPERTY_ID
})
public class SubjectScopeDTO {
public static final String JSON_PROPERTY_SUBJECT = "subject";
private UUID subject;
public static final String JSON_PROPERTY_SCOPE_ID = "scope_id";
private UUID scopeId;
public static final String JSON_PROPERTY_ID = "id";
private UUID id;
public SubjectScopeDTO subject(UUID subject) {
this.subject = subject;
return this;
}
/**
* Get subject
* @return subject
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SUBJECT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UUID getSubject() {
return subject;
}
public void setSubject(UUID subject) {
this.subject = subject;
}
public SubjectScopeDTO scopeId(UUID scopeId) {
this.scopeId = scopeId;
return this;
}
/**
* Get scopeId
* @return scopeId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SCOPE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UUID getScopeId() {
return scopeId;
}
public void setScopeId(UUID scopeId) {
this.scopeId = scopeId;
}
public SubjectScopeDTO 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;
}
SubjectScopeDTO subjectScope = (SubjectScopeDTO) o;
return Objects.equals(this.subject, subjectScope.subject) &&
Objects.equals(this.scopeId, subjectScope.scopeId) &&
Objects.equals(this.id, subjectScope.id);
}
@Override
public int hashCode() {
return Objects.hash(subject, scopeId, id);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SubjectScopeDTO {\n");
sb.append(" subject: ").append(toIndentedString(subject)).append("\n");
sb.append(" scopeId: ").append(toIndentedString(scopeId)).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