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

org.mongodb.awscdk.resources.mongodbatlas.CfnPrivateEndpointProps Maven / Gradle / Ivy

There is a newer version: 3.9.0
Show newest version
package org.mongodb.awscdk.resources.mongodbatlas;

/**
 * DEPRECATED- USE MongoDB::Atlas::PrivateEndpointService and MongoDB::Atlas::PrivateEndpointAWS instead, The Private Endpoint creation flow consists of the creation of three related resources in the next order: 1.
 * 

* Atlas Private Endpoint Service 2. Aws VPC private Endpoint 3. Atlas Private Endpoint */ @javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-07-30T09:54:28.961Z") @software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.CfnPrivateEndpointProps") @software.amazon.jsii.Jsii.Proxy(CfnPrivateEndpointProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public interface CfnPrivateEndpointProps extends software.amazon.jsii.JsiiSerializable { /** * Unique 24-hexadecimal digit string that identifies your project. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getGroupId(); /** * Aws Region. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getRegion(); /** * Name of the AWS PrivateLink endpoint service. *

* Atlas returns null while it is creating the endpoint service. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getEndpointServiceName() { return null; } /** * Error message pertaining to the AWS PrivateLink connection. *

* Returns null if there are no errors. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getErrorMessage() { return null; } /** * List of private endpoint associated to the service. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.util.List getPrivateEndpoints() { return null; } /** * The profile is defined in AWS Secret manager. *

* See Secret Manager Profile setup */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getProfile() { return null; } /** * Status of the Atlas PrivateEndpoint service connection. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getStatus() { return null; } /** * @return a {@link Builder} of {@link CfnPrivateEndpointProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link CfnPrivateEndpointProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String groupId; java.lang.String region; java.lang.String endpointServiceName; java.lang.String errorMessage; java.util.List privateEndpoints; java.lang.String profile; java.lang.String status; /** * Sets the value of {@link CfnPrivateEndpointProps#getGroupId} * @param groupId Unique 24-hexadecimal digit string that identifies your project. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder groupId(java.lang.String groupId) { this.groupId = groupId; return this; } /** * Sets the value of {@link CfnPrivateEndpointProps#getRegion} * @param region Aws Region. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder region(java.lang.String region) { this.region = region; return this; } /** * Sets the value of {@link CfnPrivateEndpointProps#getEndpointServiceName} * @param endpointServiceName Name of the AWS PrivateLink endpoint service. * Atlas returns null while it is creating the endpoint service. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder endpointServiceName(java.lang.String endpointServiceName) { this.endpointServiceName = endpointServiceName; return this; } /** * Sets the value of {@link CfnPrivateEndpointProps#getErrorMessage} * @param errorMessage Error message pertaining to the AWS PrivateLink connection. * Returns null if there are no errors. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder errorMessage(java.lang.String errorMessage) { this.errorMessage = errorMessage; return this; } /** * Sets the value of {@link CfnPrivateEndpointProps#getPrivateEndpoints} * @param privateEndpoints List of private endpoint associated to the service. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @SuppressWarnings("unchecked") public Builder privateEndpoints(java.util.List privateEndpoints) { this.privateEndpoints = (java.util.List)privateEndpoints; return this; } /** * Sets the value of {@link CfnPrivateEndpointProps#getProfile} * @param profile The profile is defined in AWS Secret manager. * See Secret Manager Profile setup * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder profile(java.lang.String profile) { this.profile = profile; return this; } /** * Sets the value of {@link CfnPrivateEndpointProps#getStatus} * @param status Status of the Atlas PrivateEndpoint service connection. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder status(java.lang.String status) { this.status = status; return this; } /** * Builds the configured instance. * @return a new instance of {@link CfnPrivateEndpointProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public CfnPrivateEndpointProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link CfnPrivateEndpointProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnPrivateEndpointProps { private final java.lang.String groupId; private final java.lang.String region; private final java.lang.String endpointServiceName; private final java.lang.String errorMessage; private final java.util.List privateEndpoints; private final java.lang.String profile; private final java.lang.String status; /** * 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.groupId = software.amazon.jsii.Kernel.get(this, "groupId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.region = software.amazon.jsii.Kernel.get(this, "region", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.endpointServiceName = software.amazon.jsii.Kernel.get(this, "endpointServiceName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.errorMessage = software.amazon.jsii.Kernel.get(this, "errorMessage", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.privateEndpoints = software.amazon.jsii.Kernel.get(this, "privateEndpoints", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.PrivateEndpoint.class))); this.profile = software.amazon.jsii.Kernel.get(this, "profile", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.status = software.amazon.jsii.Kernel.get(this, "status", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ @SuppressWarnings("unchecked") protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.groupId = java.util.Objects.requireNonNull(builder.groupId, "groupId is required"); this.region = java.util.Objects.requireNonNull(builder.region, "region is required"); this.endpointServiceName = builder.endpointServiceName; this.errorMessage = builder.errorMessage; this.privateEndpoints = (java.util.List)builder.privateEndpoints; this.profile = builder.profile; this.status = builder.status; } @Override public final java.lang.String getGroupId() { return this.groupId; } @Override public final java.lang.String getRegion() { return this.region; } @Override public final java.lang.String getEndpointServiceName() { return this.endpointServiceName; } @Override public final java.lang.String getErrorMessage() { return this.errorMessage; } @Override public final java.util.List getPrivateEndpoints() { return this.privateEndpoints; } @Override public final java.lang.String getProfile() { return this.profile; } @Override public final java.lang.String getStatus() { return this.status; } @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(); data.set("groupId", om.valueToTree(this.getGroupId())); data.set("region", om.valueToTree(this.getRegion())); if (this.getEndpointServiceName() != null) { data.set("endpointServiceName", om.valueToTree(this.getEndpointServiceName())); } if (this.getErrorMessage() != null) { data.set("errorMessage", om.valueToTree(this.getErrorMessage())); } if (this.getPrivateEndpoints() != null) { data.set("privateEndpoints", om.valueToTree(this.getPrivateEndpoints())); } if (this.getProfile() != null) { data.set("profile", om.valueToTree(this.getProfile())); } if (this.getStatus() != null) { data.set("status", om.valueToTree(this.getStatus())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("awscdk-resources-mongodbatlas.CfnPrivateEndpointProps")); 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; CfnPrivateEndpointProps.Jsii$Proxy that = (CfnPrivateEndpointProps.Jsii$Proxy) o; if (!groupId.equals(that.groupId)) return false; if (!region.equals(that.region)) return false; if (this.endpointServiceName != null ? !this.endpointServiceName.equals(that.endpointServiceName) : that.endpointServiceName != null) return false; if (this.errorMessage != null ? !this.errorMessage.equals(that.errorMessage) : that.errorMessage != null) return false; if (this.privateEndpoints != null ? !this.privateEndpoints.equals(that.privateEndpoints) : that.privateEndpoints != null) return false; if (this.profile != null ? !this.profile.equals(that.profile) : that.profile != null) return false; return this.status != null ? this.status.equals(that.status) : that.status == null; } @Override public final int hashCode() { int result = this.groupId.hashCode(); result = 31 * result + (this.region.hashCode()); result = 31 * result + (this.endpointServiceName != null ? this.endpointServiceName.hashCode() : 0); result = 31 * result + (this.errorMessage != null ? this.errorMessage.hashCode() : 0); result = 31 * result + (this.privateEndpoints != null ? this.privateEndpoints.hashCode() : 0); result = 31 * result + (this.profile != null ? this.profile.hashCode() : 0); result = 31 * result + (this.status != null ? this.status.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy