org.mongodb.awscdk.resources.mongodbatlas.ApiAtlasDiskBackupShardedClusterSnapshotMemberView Maven / Gradle / Ivy
Show all versions of awscdk-resources-mongodbatlas Show documentation
package org.mongodb.awscdk.resources.mongodbatlas;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-07-30T09:54:28.854Z")
@software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.ApiAtlasDiskBackupShardedClusterSnapshotMemberView")
@software.amazon.jsii.Jsii.Proxy(ApiAtlasDiskBackupShardedClusterSnapshotMemberView.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface ApiAtlasDiskBackupShardedClusterSnapshotMemberView extends software.amazon.jsii.JsiiSerializable {
/**
* Human-readable label that identifies the cloud provider that stores this snapshot.
*
* The resource returns this parameter when "type": "replicaSet".
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable org.mongodb.awscdk.resources.mongodbatlas.ApiAtlasDiskBackupShardedClusterSnapshotMemberViewCloudProvider getCloudProvider() {
return null;
}
/**
* Unique 24-hexadecimal digit string that identifies the snapshot.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getId() {
return null;
}
/**
* Human-readable label that identifies the shard or config host from which MongoDB Cloud took this snapshot.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getReplicaSetName() {
return null;
}
/**
* @return a {@link Builder} of {@link ApiAtlasDiskBackupShardedClusterSnapshotMemberView}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link ApiAtlasDiskBackupShardedClusterSnapshotMemberView}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
org.mongodb.awscdk.resources.mongodbatlas.ApiAtlasDiskBackupShardedClusterSnapshotMemberViewCloudProvider cloudProvider;
java.lang.String id;
java.lang.String replicaSetName;
/**
* Sets the value of {@link ApiAtlasDiskBackupShardedClusterSnapshotMemberView#getCloudProvider}
* @param cloudProvider Human-readable label that identifies the cloud provider that stores this snapshot.
* The resource returns this parameter when "type": "replicaSet".
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder cloudProvider(org.mongodb.awscdk.resources.mongodbatlas.ApiAtlasDiskBackupShardedClusterSnapshotMemberViewCloudProvider cloudProvider) {
this.cloudProvider = cloudProvider;
return this;
}
/**
* Sets the value of {@link ApiAtlasDiskBackupShardedClusterSnapshotMemberView#getId}
* @param id Unique 24-hexadecimal digit string that identifies the snapshot.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder id(java.lang.String id) {
this.id = id;
return this;
}
/**
* Sets the value of {@link ApiAtlasDiskBackupShardedClusterSnapshotMemberView#getReplicaSetName}
* @param replicaSetName Human-readable label that identifies the shard or config host from which MongoDB Cloud took this snapshot.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder replicaSetName(java.lang.String replicaSetName) {
this.replicaSetName = replicaSetName;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link ApiAtlasDiskBackupShardedClusterSnapshotMemberView}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public ApiAtlasDiskBackupShardedClusterSnapshotMemberView build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link ApiAtlasDiskBackupShardedClusterSnapshotMemberView}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ApiAtlasDiskBackupShardedClusterSnapshotMemberView {
private final org.mongodb.awscdk.resources.mongodbatlas.ApiAtlasDiskBackupShardedClusterSnapshotMemberViewCloudProvider cloudProvider;
private final java.lang.String id;
private final java.lang.String replicaSetName;
/**
* Constructor that initializes the object based on values retrieved from the JsiiObject.
* @param objRef Reference to the JSII managed object.
*/
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
this.cloudProvider = software.amazon.jsii.Kernel.get(this, "cloudProvider", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.ApiAtlasDiskBackupShardedClusterSnapshotMemberViewCloudProvider.class));
this.id = software.amazon.jsii.Kernel.get(this, "id", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.replicaSetName = software.amazon.jsii.Kernel.get(this, "replicaSetName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.cloudProvider = builder.cloudProvider;
this.id = builder.id;
this.replicaSetName = builder.replicaSetName;
}
@Override
public final org.mongodb.awscdk.resources.mongodbatlas.ApiAtlasDiskBackupShardedClusterSnapshotMemberViewCloudProvider getCloudProvider() {
return this.cloudProvider;
}
@Override
public final java.lang.String getId() {
return this.id;
}
@Override
public final java.lang.String getReplicaSetName() {
return this.replicaSetName;
}
@Override
@software.amazon.jsii.Internal
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
if (this.getCloudProvider() != null) {
data.set("cloudProvider", om.valueToTree(this.getCloudProvider()));
}
if (this.getId() != null) {
data.set("id", om.valueToTree(this.getId()));
}
if (this.getReplicaSetName() != null) {
data.set("replicaSetName", om.valueToTree(this.getReplicaSetName()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("awscdk-resources-mongodbatlas.ApiAtlasDiskBackupShardedClusterSnapshotMemberView"));
struct.set("data", data);
final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
obj.set("$jsii.struct", struct);
return obj;
}
@Override
public final boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ApiAtlasDiskBackupShardedClusterSnapshotMemberView.Jsii$Proxy that = (ApiAtlasDiskBackupShardedClusterSnapshotMemberView.Jsii$Proxy) o;
if (this.cloudProvider != null ? !this.cloudProvider.equals(that.cloudProvider) : that.cloudProvider != null) return false;
if (this.id != null ? !this.id.equals(that.id) : that.id != null) return false;
return this.replicaSetName != null ? this.replicaSetName.equals(that.replicaSetName) : that.replicaSetName == null;
}
@Override
public final int hashCode() {
int result = this.cloudProvider != null ? this.cloudProvider.hashCode() : 0;
result = 31 * result + (this.id != null ? this.id.hashCode() : 0);
result = 31 * result + (this.replicaSetName != null ? this.replicaSetName.hashCode() : 0);
return result;
}
}
}