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

com.nutanix.dp1.sec.security.v4.report.Stig Maven / Gradle / Ivy

/*
 * Generated file ..
 *
 * Product version: 4.0.1-beta-1
 *
 * Part of the Nutanix Security APIs
 *
 * (c) 2024 Nutanix Inc.  All rights reserved
 *
 */

package com.nutanix.dp1.sec.security.v4.report;

import com.fasterxml.jackson.annotation.JsonAnySetter;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.AccessLevel;
import com.nutanix.devplatform.models.PrettyModeViews.*;
import com.fasterxml.jackson.annotation.JsonView;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.stream.Collectors;
import com.nutanix.dp1.sec.deserializers.SecObjectTypeTypedObject;

import javax.validation.constraints.*;

import java.util.ArrayList;
import java.util.List;

import static com.nutanix.dp1.sec.deserializers.SecDeserializerUtils.*;


/**
 * Contains information of a specific STIG.
 */
@EqualsAndHashCode(callSuper=true)
@Data
@lombok.extern.slf4j.Slf4j
public class Stig extends com.nutanix.dp1.sec.common.v1.response.ExternalizableAbstractModel implements java.io.Serializable, SecObjectTypeTypedObject {

  

  public Stig() {
    super();

  }

  @lombok.Builder(builderMethodName = "StigBuilder")
  public Stig(String tenantId, String extId, java.util.List links, String title, String ruleId, String stigVersion, java.util.List identifiers, java.util.List affectedClusters, com.nutanix.dp1.sec.security.v4.report.Severity severity, com.nutanix.dp1.sec.security.v4.report.StigStatus status, String comments, String fixText, String benchmarkId) {
    super(tenantId, extId, links);
    this.setTitle(title);
    this.setRuleId(ruleId);
    this.setStigVersion(stigVersion);
    this.setIdentifiers(identifiers);
    this.setAffectedClusters(affectedClusters);
    this.setSeverity(severity);
    this.setStatus(status);
    this.setComments(comments);
    this.setFixText(fixText);
    this.setBenchmarkId(benchmarkId);
  }

  @Override 
  protected String initialize$objectType() {
    return "security.v4.report.Stig";
  }

  @Override 
  protected String initialize$fv() {
    return "v4.r0.b1";
  }


  
    @javax.validation.constraints.Size(max = 199)
    
    
    
    
    private String title = null;
  
    /**
     * Title of the STIG control.
     */
    public void setTitle(String title) {
      if (this.title == null) {
        this.title = title;
      }
      else {
        log.warn("Read-only property title already contains a non-null value and cannot be set again");
      }
    }
  
    @javax.validation.constraints.Pattern(regexp="^SV-\\d{6}r\\d{6}_rule$")
    
    
    
    
    private String ruleId = null;
  
    /**
     * Rule ID of the STIG control.
     */
    public void setRuleId(String ruleId) {
      if (this.ruleId == null) {
        this.ruleId = ruleId;
      }
      else {
        log.warn("Read-only property ruleId already contains a non-null value and cannot be set again");
      }
    }
  
    @javax.validation.constraints.Pattern(regexp="^RHEL-\\d{2}-\\d{6}$")
    
    
    
    
    private String stigVersion = null;
  
    /**
     * STIG ID of the control.
     */
    public void setStigVersion(String stigVersion) {
      if (this.stigVersion == null) {
        this.stigVersion = stigVersion;
      }
      else {
        log.warn("Read-only property stigVersion already contains a non-null value and cannot be set again");
      }
    }
  
    
    
    
    
    private List identifiers = null;
  
    /**
     * Additional identifiers used to describe this control.
     */
    public void setIdentifiers(List identifiers) {
      if (this.identifiers == null) {
        this.identifiers = identifiers;
      }
      else {
        log.warn("Read-only property identifiers already contains a non-null value and cannot be set again");
      }
    }
  
    
    
    
    
    private List affectedClusters = null;
  
    /**
     * List of clusters that failed the STIG control.
     */
    public void setAffectedClusters(List affectedClusters) {
      if (this.affectedClusters == null) {
        this.affectedClusters = affectedClusters;
      }
      else {
        log.warn("Read-only property affectedClusters already contains a non-null value and cannot be set again");
      }
    }
  
    @javax.validation.constraints.Size(max = 499)
    
    
    
    
    private String comments = null;
  
    /**
     * The comments to explain why a STIG rule applies or does not apply to the cluster.
     */
    public void setComments(String comments) {
      if (this.comments == null) {
        this.comments = comments;
      }
      else {
        log.warn("Read-only property comments already contains a non-null value and cannot be set again");
      }
    }
  
    @javax.validation.constraints.Size(max = 499)
    
    
    
    
    private String fixText = null;
  
    /**
     * The command/steps to fix the STIG rule failure.
     */
    public void setFixText(String fixText) {
      if (this.fixText == null) {
        this.fixText = fixText;
      }
      else {
        log.warn("Read-only property fixText already contains a non-null value and cannot be set again");
      }
    }
  
    @javax.validation.constraints.Pattern(regexp="^RHEL_\\d+_V\\d+R\\d+$")
    
    
    
    
    private String benchmarkId = null;
  
    /**
     * Benchmark ID of the STIG rules.
     */
    public void setBenchmarkId(String benchmarkId) {
      if (this.benchmarkId == null) {
        this.benchmarkId = benchmarkId;
      }
      else {
        log.warn("Read-only property benchmarkId already contains a non-null value and cannot be set again");
      }
    }
  
  
  
    /**
    * 
    */
    
    
    @JsonProperty("severity")
    public com.nutanix.dp1.sec.security.v4.report.Severity severity = null;
  
  
  
    /**
    * 
    */
    
    
    @JsonProperty("status")
    public com.nutanix.dp1.sec.security.v4.report.StigStatus status = null;
  
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy