All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.securecodebox.persistence.defectdojo.model.RiskAcceptance Maven / Gradle / Ivy

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.time.OffsetDateTime;
import java.util.Map;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@JsonInclude(JsonInclude.Include.NON_NULL)
public final class RiskAcceptance implements Model, HasId {
  @JsonProperty
  private long id;

  @JsonProperty
  private String recommendation;

  @JsonProperty("recommendation_details")
  private String recommendationDetails;

  private String decision;

  @JsonProperty("decision_details")
  private String decisionDetails;

  @JsonProperty
  private String path;

  @JsonProperty("accepted_by")
  private String acceptedBy;

  @JsonProperty("expiration_date")
  private OffsetDateTime expirationDate;

  @JsonProperty("expiration_date_warned")
  private OffsetDateTime expirationDateWarned;

  @JsonProperty("expiration_date_handled")
  private OffsetDateTime expirationDateHandled;

  @JsonProperty("created")
  private OffsetDateTime createdAt;

  @JsonProperty("updated")
  private OffsetDateTime updatedAt;

  @JsonProperty
  private long owner;

  @Override
  public boolean equalsQueryString(Map queryParams) {
    if (QueryParamsComparator.isNull(queryParams)) {
      return false;
    }

    return QueryParamsComparator.isIdEqual(this, queryParams);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy