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

com.nutanix.dp1.sec.iam.v4.authn.BucketsAccessKey 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.iam.v4.authn;

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

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


/**
 * Information of bucket access key.
 */
@EqualsAndHashCode(callSuper=true)
@Data
@lombok.extern.slf4j.Slf4j
public class BucketsAccessKey extends com.nutanix.dp1.sec.common.v1.response.ExternalizableAbstractModel implements java.io.Serializable, SecObjectTypeTypedObject {

  

  public BucketsAccessKey() {
    super();

  }

  @lombok.Builder(builderMethodName = "BucketsAccessKeyBuilder")
  public BucketsAccessKey(String tenantId, String extId, java.util.List links, String accessKeyName, String secretAccessKey, String userId, java.time.OffsetDateTime createdTime, String lastUpdatedBy, String assignedTo, com.nutanix.dp1.sec.iam.v4.authn.CreationType creationType, java.time.OffsetDateTime expiryTime, com.nutanix.dp1.sec.iam.v4.authn.BucketsAccessKeyStatusType status, String createdBy, java.time.OffsetDateTime lastUpdatedTime) {
    super(tenantId, extId, links);
    this.setAccessKeyName(accessKeyName);
    this.setSecretAccessKey(secretAccessKey);
    this.setUserId(userId);
    this.setCreatedTime(createdTime);
    this.setLastUpdatedBy(lastUpdatedBy);
    this.setAssignedTo(assignedTo);
    this.setCreationType(creationType);
    this.setExpiryTime(expiryTime);
    this.setStatus(status);
    this.setCreatedBy(createdBy);
    this.setLastUpdatedTime(lastUpdatedTime);
  }

  @Override 
  protected String initialize$objectType() {
    return "iam.v4.authn.BucketsAccessKey";
  }

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


  
    
    
    
    
    private String secretAccessKey = null;
  
    /**
     * This represents secret access key, which will be returned only during access key creation.
     */
    public void setSecretAccessKey(String secretAccessKey) {
      if (this.secretAccessKey == null) {
        this.secretAccessKey = secretAccessKey;
      }
      else {
        log.warn("Read-only property secretAccessKey already contains a non-null value and cannot be set again");
      }
    }
  
    @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}$")
    
    
    
    
    private String userId = null;
  
    /**
     * User identifier who owns the bucket access key.
     */
    public void setUserId(String userId) {
      if (this.userId == null) {
        this.userId = userId;
      }
      else {
        log.warn("Read-only property userId already contains a non-null value and cannot be set again");
      }
    }
  
    
    
    
    
    private OffsetDateTime createdTime = null;
  
    /**
     * Creation time for the bucket access key.
     */
    public void setCreatedTime(OffsetDateTime createdTime) {
      if (this.createdTime == null) {
        this.createdTime = createdTime;
      }
      else {
        log.warn("Read-only property createdTime already contains a non-null value and cannot be set again");
      }
    }
  
    @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}$")
    
    
    
    
    private String lastUpdatedBy = null;
  
    /**
     * Entity that updated the buckets access key.
     */
    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");
      }
    }
  
    @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}$")
    
    
    
    
    private String createdBy = null;
  
    /**
     * Service account user who created the buckets access key.
     */
    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 OffsetDateTime lastUpdatedTime = null;
  
    /**
     * Creation time for the bucket access key.
     */
    public void setLastUpdatedTime(OffsetDateTime lastUpdatedTime) {
      if (this.lastUpdatedTime == null) {
        this.lastUpdatedTime = lastUpdatedTime;
      }
      else {
        log.warn("Read-only property lastUpdatedTime already contains a non-null value and cannot be set again");
      }
    }
  
  
  
    /**
    * Name of the bucket access key.
    */
    @javax.validation.constraints.Pattern(regexp="^[^<>;'()&+%/\\\\\"`]*$")
    @javax.validation.constraints.Size(min = 1, max = 255)
    
    
    @JsonProperty("accessKeyName")
    public String accessKeyName = null;
  
  
  
    /**
    * External client to whom this key is allocated.
    */
    @javax.validation.constraints.Size(min = 3, max = 255)
    
    
    @JsonProperty("assignedTo")
    public String assignedTo = null;
  
  
  
    /**
    * 
    */
    
    
    @JsonProperty("creationType")
    public com.nutanix.dp1.sec.iam.v4.authn.CreationType creationType = null;
  
  
  
    /**
    * The expiry time of the buckets access Key.
    */
    
    
    @JsonProperty("expiryTime")
    public OffsetDateTime expiryTime = null;
  
  
  
    /**
    * 
    */
    
    
    @JsonProperty("status")
    public com.nutanix.dp1.sec.iam.v4.authn.BucketsAccessKeyStatusType status = null;
  
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy