
com.nutanix.dp1.dat.dataprotection.v4.common.ClusterInfo Maven / Gradle / Ivy
/*
* Generated file ..
*
* Product version: 4.0.1
*
* Part of the Nutanix Data Protection APIs
*
* (c) 2024 Nutanix Inc. All rights reserved
*
*/
package com.nutanix.dp1.dat.dataprotection.v4.common;
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.dat.deserializers.DatObjectTypeTypedObject;
import javax.validation.constraints.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static com.nutanix.dp1.dat.deserializers.DatDeserializerUtils.*;
/**
* It will contain a redirect IP and a certificate. Use the certificate to invoke the compute changed regions endpoint. Set the certificate as a header when invoking the CBT endpoint with NTNX_IGW_SESSION='CERTIFICATE'.
*/
@Data
@lombok.extern.slf4j.Slf4j
public class ClusterInfo implements java.io.Serializable, DatObjectTypeTypedObject {
public ClusterInfo() {
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 = "ClusterInfoBuilder")
public ClusterInfo(String jwtToken, com.nutanix.dp1.dat.common.v1.config.IPAddress clusterIp) {
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.setJwtToken(jwtToken);
this.setClusterIp(clusterIp);
}
protected String initialize$objectType() {
return "dataprotection.v4.common.ClusterInfo";
}
protected String initialize$fv() {
return "v4.r0";
}
@JsonAnySetter
private void setUndeserializedFields(String name, Object value) {
$unknownFields.put(name, value);
}
/**
* JWT token in string format. This token must be set as a session cookie while making second call for CBT/VSS.
*/
@JsonProperty("jwtToken")
public String jwtToken = null;
/**
*
*/
@JsonProperty("clusterIp")
public com.nutanix.dp1.dat.common.v1.config.IPAddress clusterIp = 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