io.securecodebox.persistence.defectdojo.model.Group Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of defectdojo-client Show documentation
Show all versions of defectdojo-client Show documentation
This library helps with interacting with the REST API of DefectDojo.
The newest version!
// SPDX-FileCopyrightText: the secureCodeBox authors
//
// SPDX-License-Identifier: Apache-2.0
package io.securecodebox.persistence.defectdojo.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import java.util.List;
import java.util.Map;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@JsonInclude(JsonInclude.Include.NON_NULL)
public final class Group implements Model, HasId, HasName {
@JsonProperty
private long id;
@JsonProperty
@NonNull
private String name;
@JsonProperty
private String description;
@JsonProperty
private List users;
@JsonProperty("social_provider")
private String socialProvider;
@Override
public boolean equalsQueryString(Map queryParams) {
if (QueryParamsComparator.isNull(queryParams)) {
return false;
}
if (QueryParamsComparator.isIdEqual(this, queryParams)) {
return true;
}
if (QueryParamsComparator.isNameEqual(this, queryParams)) {
return true;
}
return false;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy