
com.nutanix.dp1.sec.security.v4.management.SecurityValidationSpec 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.management;
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.HashMap;
import java.util.List;
import java.util.Map;
import static com.nutanix.dp1.sec.deserializers.SecDeserializerUtils.*;
/**
* Specifications required to trigger a security validation job.
*/
@Data
@lombok.extern.slf4j.Slf4j
public class SecurityValidationSpec implements java.io.Serializable, SecObjectTypeTypedObject {
public SecurityValidationSpec() {
this.$objectType = this.initialize$objectType();
this.$reserved = new java.util.LinkedHashMap<>();
this.$reserved.put("$fv", this.initialize$fv());
this.$unknownFields = new java.util.LinkedHashMap<>();
}
@lombok.Builder(builderMethodName = "SecurityValidationSpecBuilder")
public SecurityValidationSpec(com.nutanix.dp1.sec.security.v4.management.SecuredEntityType securedEntityType, String securedEntityName, String securedEntityExtId, com.nutanix.dp1.sec.security.v4.management.EventType eventType, String securedPolicyExtId, String securedEntityLocation, String requesterExtId, String fullyQualifiedSecuredEntityName) {
this.$objectType = this.initialize$objectType();
this.$reserved = new java.util.LinkedHashMap<>();
this.$reserved.put("$fv", this.initialize$fv());
this.$unknownFields = new java.util.LinkedHashMap<>();
this.setSecuredEntityType(securedEntityType);
this.setSecuredEntityName(securedEntityName);
this.setSecuredEntityExtId(securedEntityExtId);
this.setEventType(eventType);
this.setSecuredPolicyExtId(securedPolicyExtId);
this.setSecuredEntityLocation(securedEntityLocation);
this.setRequesterExtId(requesterExtId);
this.setFullyQualifiedSecuredEntityName(fullyQualifiedSecuredEntityName);
}
protected String initialize$objectType() {
return "security.v4.management.SecurityValidationSpec";
}
protected String initialize$fv() {
return "v4.r0.b1";
}
@JsonAnySetter
private void setUndeserializedFields(String name, Object value) {
$unknownFields.put(name, value);
}
/**
*
*/
@JsonProperty("securedEntityType")
public com.nutanix.dp1.sec.security.v4.management.SecuredEntityType securedEntityType = null;
/**
* Name of the secured entity.
*/
@javax.validation.constraints.Size(min = 4, max = 199)
@JsonProperty("securedEntityName")
public String securedEntityName = null;
/**
* UUID of the secured entity.
*/
@javax.validation.constraints.Pattern(regexp="^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")
@JsonProperty("securedEntityExtId")
public String securedEntityExtId = null;
/**
*
*/
@JsonProperty("eventType")
public com.nutanix.dp1.sec.security.v4.management.EventType eventType = null;
/**
* UUID of secured policy
*/
@javax.validation.constraints.Pattern(regexp="^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")
@JsonProperty("securedPolicyExtId")
public String securedPolicyExtId = null;
/**
* Location of the secured entity.
*/
@javax.validation.constraints.Pattern(regexp="^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")
@JsonProperty("securedEntityLocation")
public String securedEntityLocation = null;
/**
* IAM UUID of the requester.
*/
@javax.validation.constraints.Pattern(regexp="^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")
@JsonProperty("requesterExtId")
public String requesterExtId = null;
/**
* Qualified entity type. For example dataprotection:config:recovery-point
*/
@javax.validation.constraints.Size(max = 199)
@JsonProperty("fullyQualifiedSecuredEntityName")
public String fullyQualifiedSecuredEntityName = null;
@Getter
@JsonView({StandardView.class})
protected final Map $reserved;
@Getter
@JsonView({StandardView.class})
protected final String $objectType;
@Getter
@JsonView({StandardView.class})
protected final Map $unknownFields;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy