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

software.amazon.awscdk.services.neptune.alpha.ParameterGroupProps Maven / Gradle / Ivy

There is a newer version: 2.168.0-alpha.0
Show newest version
package software.amazon.awscdk.services.neptune.alpha;

/**
 * (experimental) Marker class for cluster parameter group.
 * 

* Example: *

*

 * ClusterParameterGroup clusterParams = ClusterParameterGroup.Builder.create(this, "ClusterParams")
 *         .description("Cluster parameter group")
 *         .parameters(Map.of(
 *                 "neptune_enable_audit_log", "1"))
 *         .build();
 * ParameterGroup dbParams = ParameterGroup.Builder.create(this, "DbParams")
 *         .description("Db parameter group")
 *         .parameters(Map.of(
 *                 "neptune_query_timeout", "120000"))
 *         .build();
 * DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database")
 *         .vpc(vpc)
 *         .instanceType(InstanceType.R5_LARGE)
 *         .clusterParameterGroup(clusterParams)
 *         .parameterGroup(dbParams)
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.94.0 (build b380f01)", date = "2024-02-23T02:06:41.989Z") @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.neptune.alpha.$Module.class, fqn = "@aws-cdk/aws-neptune-alpha.ParameterGroupProps") @software.amazon.jsii.Jsii.Proxy(ParameterGroupProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ParameterGroupProps extends software.amazon.jsii.JsiiSerializable { /** * (experimental) The parameters in this parameter group. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @org.jetbrains.annotations.NotNull java.util.Map getParameters(); /** * (experimental) Description for this parameter group. *

* Default: a CDK generated description */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getDescription() { return null; } /** * (experimental) Parameter group family. *

* Default: - NEPTUNE_1 */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.neptune.alpha.ParameterGroupFamily getFamily() { return null; } /** * (experimental) The name of the parameter group. *

* Default: A CDK generated name for the parameter group */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getParameterGroupName() { return null; } /** * @return a {@link Builder} of {@link ParameterGroupProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) static Builder builder() { return new Builder(); } /** * A builder for {@link ParameterGroupProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder implements software.amazon.jsii.Builder { java.util.Map parameters; java.lang.String description; software.amazon.awscdk.services.neptune.alpha.ParameterGroupFamily family; java.lang.String parameterGroupName; /** * Sets the value of {@link ParameterGroupProps#getParameters} * @param parameters The parameters in this parameter group. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder parameters(java.util.Map parameters) { this.parameters = parameters; return this; } /** * Sets the value of {@link ParameterGroupProps#getDescription} * @param description Description for this parameter group. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder description(java.lang.String description) { this.description = description; return this; } /** * Sets the value of {@link ParameterGroupProps#getFamily} * @param family Parameter group family. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder family(software.amazon.awscdk.services.neptune.alpha.ParameterGroupFamily family) { this.family = family; return this; } /** * Sets the value of {@link ParameterGroupProps#getParameterGroupName} * @param parameterGroupName The name of the parameter group. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder parameterGroupName(java.lang.String parameterGroupName) { this.parameterGroupName = parameterGroupName; return this; } /** * Builds the configured instance. * @return a new instance of {@link ParameterGroupProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public ParameterGroupProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link ParameterGroupProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ParameterGroupProps { private final java.util.Map parameters; private final java.lang.String description; private final software.amazon.awscdk.services.neptune.alpha.ParameterGroupFamily family; private final java.lang.String parameterGroupName; /** * 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.parameters = software.amazon.jsii.Kernel.get(this, "parameters", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); this.description = software.amazon.jsii.Kernel.get(this, "description", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.family = software.amazon.jsii.Kernel.get(this, "family", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.neptune.alpha.ParameterGroupFamily.class)); this.parameterGroupName = software.amazon.jsii.Kernel.get(this, "parameterGroupName", 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.parameters = java.util.Objects.requireNonNull(builder.parameters, "parameters is required"); this.description = builder.description; this.family = builder.family; this.parameterGroupName = builder.parameterGroupName; } @Override public final java.util.Map getParameters() { return this.parameters; } @Override public final java.lang.String getDescription() { return this.description; } @Override public final software.amazon.awscdk.services.neptune.alpha.ParameterGroupFamily getFamily() { return this.family; } @Override public final java.lang.String getParameterGroupName() { return this.parameterGroupName; } @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("parameters", om.valueToTree(this.getParameters())); if (this.getDescription() != null) { data.set("description", om.valueToTree(this.getDescription())); } if (this.getFamily() != null) { data.set("family", om.valueToTree(this.getFamily())); } if (this.getParameterGroupName() != null) { data.set("parameterGroupName", om.valueToTree(this.getParameterGroupName())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@aws-cdk/aws-neptune-alpha.ParameterGroupProps")); 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; ParameterGroupProps.Jsii$Proxy that = (ParameterGroupProps.Jsii$Proxy) o; if (!parameters.equals(that.parameters)) return false; if (this.description != null ? !this.description.equals(that.description) : that.description != null) return false; if (this.family != null ? !this.family.equals(that.family) : that.family != null) return false; return this.parameterGroupName != null ? this.parameterGroupName.equals(that.parameterGroupName) : that.parameterGroupName == null; } @Override public final int hashCode() { int result = this.parameters.hashCode(); result = 31 * result + (this.description != null ? this.description.hashCode() : 0); result = 31 * result + (this.family != null ? this.family.hashCode() : 0); result = 31 * result + (this.parameterGroupName != null ? this.parameterGroupName.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy