org.mongodb.awscdk.resources.mongodbatlas.AwsPrivateEndpointConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of awscdk-resources-mongodbatlas Show documentation
Show all versions of awscdk-resources-mongodbatlas Show documentation
MongoDB Atlas CDK Construct Library for AWS CloudFormation Resources
package org.mongodb.awscdk.resources.mongodbatlas;
/**
* AWS Private endpoint configuration properties.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-07-30T09:54:28.889Z")
@software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.AwsPrivateEndpointConfig")
@software.amazon.jsii.Jsii.Proxy(AwsPrivateEndpointConfig.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface AwsPrivateEndpointConfig extends software.amazon.jsii.JsiiSerializable {
/**
* Status of the AWS PrivateEndpoint connection.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getAwsPrivateEndpointStatus() {
return null;
}
/**
* Unique identifiers of the interface endpoints in your VPC that you added to the AWS PrivateLink connection.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getInterfaceEndpointId() {
return null;
}
/**
* Aws Region.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getRegion() {
return null;
}
/**
* List of string representing the AWS VPC Subnet ID (like: subnet-xxxxxxxxxxxxxxxxx) (Used For Creating the AWS VPC Endpoint).
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.util.List getSubnetIds() {
return null;
}
/**
* String Representing the AWS VPC ID (like: vpc-xxxxxxxxxxxxxxxx) (Used For Creating the AWS VPC Endpoint).
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getVpcId() {
return null;
}
/**
* @return a {@link Builder} of {@link AwsPrivateEndpointConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link AwsPrivateEndpointConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.String awsPrivateEndpointStatus;
java.lang.String interfaceEndpointId;
java.lang.String region;
java.util.List subnetIds;
java.lang.String vpcId;
/**
* Sets the value of {@link AwsPrivateEndpointConfig#getAwsPrivateEndpointStatus}
* @param awsPrivateEndpointStatus Status of the AWS PrivateEndpoint connection.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder awsPrivateEndpointStatus(java.lang.String awsPrivateEndpointStatus) {
this.awsPrivateEndpointStatus = awsPrivateEndpointStatus;
return this;
}
/**
* Sets the value of {@link AwsPrivateEndpointConfig#getInterfaceEndpointId}
* @param interfaceEndpointId Unique identifiers of the interface endpoints in your VPC that you added to the AWS PrivateLink connection.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder interfaceEndpointId(java.lang.String interfaceEndpointId) {
this.interfaceEndpointId = interfaceEndpointId;
return this;
}
/**
* Sets the value of {@link AwsPrivateEndpointConfig#getRegion}
* @param region Aws Region.
* @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 AwsPrivateEndpointConfig#getSubnetIds}
* @param subnetIds List of string representing the AWS VPC Subnet ID (like: subnet-xxxxxxxxxxxxxxxxx) (Used For Creating the AWS VPC Endpoint).
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder subnetIds(java.util.List subnetIds) {
this.subnetIds = subnetIds;
return this;
}
/**
* Sets the value of {@link AwsPrivateEndpointConfig#getVpcId}
* @param vpcId String Representing the AWS VPC ID (like: vpc-xxxxxxxxxxxxxxxx) (Used For Creating the AWS VPC Endpoint).
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder vpcId(java.lang.String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link AwsPrivateEndpointConfig}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public AwsPrivateEndpointConfig build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link AwsPrivateEndpointConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements AwsPrivateEndpointConfig {
private final java.lang.String awsPrivateEndpointStatus;
private final java.lang.String interfaceEndpointId;
private final java.lang.String region;
private final java.util.List subnetIds;
private final java.lang.String vpcId;
/**
* 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.awsPrivateEndpointStatus = software.amazon.jsii.Kernel.get(this, "awsPrivateEndpointStatus", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.interfaceEndpointId = software.amazon.jsii.Kernel.get(this, "interfaceEndpointId", 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.subnetIds = software.amazon.jsii.Kernel.get(this, "subnetIds", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)));
this.vpcId = software.amazon.jsii.Kernel.get(this, "vpcId", 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.awsPrivateEndpointStatus = builder.awsPrivateEndpointStatus;
this.interfaceEndpointId = builder.interfaceEndpointId;
this.region = builder.region;
this.subnetIds = builder.subnetIds;
this.vpcId = builder.vpcId;
}
@Override
public final java.lang.String getAwsPrivateEndpointStatus() {
return this.awsPrivateEndpointStatus;
}
@Override
public final java.lang.String getInterfaceEndpointId() {
return this.interfaceEndpointId;
}
@Override
public final java.lang.String getRegion() {
return this.region;
}
@Override
public final java.util.List getSubnetIds() {
return this.subnetIds;
}
@Override
public final java.lang.String getVpcId() {
return this.vpcId;
}
@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.getAwsPrivateEndpointStatus() != null) {
data.set("awsPrivateEndpointStatus", om.valueToTree(this.getAwsPrivateEndpointStatus()));
}
if (this.getInterfaceEndpointId() != null) {
data.set("interfaceEndpointId", om.valueToTree(this.getInterfaceEndpointId()));
}
if (this.getRegion() != null) {
data.set("region", om.valueToTree(this.getRegion()));
}
if (this.getSubnetIds() != null) {
data.set("subnetIds", om.valueToTree(this.getSubnetIds()));
}
if (this.getVpcId() != null) {
data.set("vpcId", om.valueToTree(this.getVpcId()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("awscdk-resources-mongodbatlas.AwsPrivateEndpointConfig"));
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;
AwsPrivateEndpointConfig.Jsii$Proxy that = (AwsPrivateEndpointConfig.Jsii$Proxy) o;
if (this.awsPrivateEndpointStatus != null ? !this.awsPrivateEndpointStatus.equals(that.awsPrivateEndpointStatus) : that.awsPrivateEndpointStatus != null) return false;
if (this.interfaceEndpointId != null ? !this.interfaceEndpointId.equals(that.interfaceEndpointId) : that.interfaceEndpointId != null) return false;
if (this.region != null ? !this.region.equals(that.region) : that.region != null) return false;
if (this.subnetIds != null ? !this.subnetIds.equals(that.subnetIds) : that.subnetIds != null) return false;
return this.vpcId != null ? this.vpcId.equals(that.vpcId) : that.vpcId == null;
}
@Override
public final int hashCode() {
int result = this.awsPrivateEndpointStatus != null ? this.awsPrivateEndpointStatus.hashCode() : 0;
result = 31 * result + (this.interfaceEndpointId != null ? this.interfaceEndpointId.hashCode() : 0);
result = 31 * result + (this.region != null ? this.region.hashCode() : 0);
result = 31 * result + (this.subnetIds != null ? this.subnetIds.hashCode() : 0);
result = 31 * result + (this.vpcId != null ? this.vpcId.hashCode() : 0);
return result;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy