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

com.nutanix.dp1.vmm.vmm.v4.templates.Template Maven / Gradle / Ivy

/*
 * Generated file ..
 *
 * Product version: 4.0.3-alpha-1
 *
 * Part of the Nutanix Vmm Versioned APIs
 *
 * (c) 2023 Nutanix Inc.  All rights reserved
 *
 */

package com.nutanix.dp1.vmm.vmm.v4.templates;

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 com.nutanix.dp1.vmm.deserializers.VmmObjectTypeTypedObject;

import javax.validation.constraints.*;

import java.time.OffsetDateTime;
import java.util.List;

import static com.nutanix.dp1.vmm.deserializers.VmmDeserializerUtils.*;





@EqualsAndHashCode(callSuper=true)
@Data
@lombok.extern.slf4j.Slf4j
public class Template extends com.nutanix.dp1.vmm.common.v1.response.ExternalizableAbstractModel implements java.io.Serializable, VmmObjectTypeTypedObject {

  

  public Template() {
    super();
    
  }

  @lombok.Builder(builderMethodName = "TemplateBuilder")
  public Template(String tenantId, String extId, java.util.List links, String templateName, String templateDescription, com.nutanix.dp1.vmm.vmm.v4.templates.TemplateVersionSpec templateVersionSpec, Boolean setActiveVersion, Integer activeVersionNumber, com.nutanix.dp1.vmm.vmm.v4.templates.GuestUpdateStatus guestUpdateStatus, java.time.OffsetDateTime createdAt, java.time.OffsetDateTime lastUpdatedAt, String createdBy, String lastUpdatedBy) {
    super(tenantId, extId, links);

    this.setTemplateName(templateName);

    this.setTemplateDescription(templateDescription);

    this.setTemplateVersionSpec(templateVersionSpec);

    this.setSetActiveVersion(setActiveVersion);

    this.setActiveVersionNumber(activeVersionNumber);

    this.setGuestUpdateStatus(guestUpdateStatus);

    this.setCreatedAt(createdAt);

    this.setLastUpdatedAt(lastUpdatedAt);

    this.setCreatedBy(createdBy);

    this.setLastUpdatedBy(lastUpdatedBy);
  }

  @Override 
  protected String initialize$objectType() {
    return "vmm.v4.templates.Template";
  }

  @Override 
  protected String initialize$fqObjectType() {
    return "vmm.v4.r0.a1.templates.Template";
  }


  

    @javax.validation.constraints.Max(value = 2147483647)
    @javax.validation.constraints.Min(value = 0)
    
    
    
    private Integer activeVersionNumber = null;
  
    /**
     * The current gold version.
     */
    public void setActiveVersionNumber(Integer activeVersionNumber) {
      if (this.activeVersionNumber == null) {
        this.activeVersionNumber = activeVersionNumber;
      }
      else {
        log.warn("Read-only property activeVersionNumber already contains a non-null value and cannot be set again");
      }
    }
  

    
    
    
    private OffsetDateTime createdAt = null;
  
    /**
     * Created Time.
     */
    public void setCreatedAt(OffsetDateTime createdAt) {
      if (this.createdAt == null) {
        this.createdAt = createdAt;
      }
      else {
        log.warn("Read-only property createdAt already contains a non-null value and cannot be set again");
      }
    }
  

    
    
    
    private OffsetDateTime lastUpdatedAt = null;
  
    /**
     * Last Update Time.
     */
    public void setLastUpdatedAt(OffsetDateTime lastUpdatedAt) {
      if (this.lastUpdatedAt == null) {
        this.lastUpdatedAt = lastUpdatedAt;
      }
      else {
        log.warn("Read-only property lastUpdatedAt already contains a non-null value and cannot be set again");
      }
    }
  

    
    
    
    private String createdBy = null;
  
    /**
     * The user who created the Template.
     */
    public void setCreatedBy(String createdBy) {
      if (this.createdBy == null) {
        this.createdBy = createdBy;
      }
      else {
        log.warn("Read-only property createdBy already contains a non-null value and cannot be set again");
      }
    }
  

    
    
    
    private String lastUpdatedBy = null;
  
    /**
     * The user who updated the Version in Template.
     */
    public void setLastUpdatedBy(String lastUpdatedBy) {
      if (this.lastUpdatedBy == null) {
        this.lastUpdatedBy = lastUpdatedBy;
      }
      else {
        log.warn("Read-only property lastUpdatedBy already contains a non-null value and cannot be set again");
      }
    }
  
  

  
    /**
    * Template Name.
    */
    @javax.validation.constraints.Size(min = 1, max = 256)
    
    @JsonProperty("templateName")
    public String templateName = null;
  
  

  
    /**
    * A description for the Template.
    */
    @javax.validation.constraints.Size(max = 1000)
    
    @JsonProperty("templateDescription")
    public String templateDescription = null;
  
  

  
    /**
    * 
    */
    
    @JsonProperty("templateVersionSpec")
    public com.nutanix.dp1.vmm.vmm.v4.templates.TemplateVersionSpec templateVersionSpec = null;
  
  

  
    /**
    * Indicates whether the version has to be a Gold version or not.
    */
    
    @JsonProperty("setActiveVersion")
    public Boolean setActiveVersion = true;
  
  

  
    /**
    * 
    */
    
    @JsonProperty("guestUpdateStatus")
    public com.nutanix.dp1.vmm.vmm.v4.templates.GuestUpdateStatus guestUpdateStatus = null;
  
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy