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

software.amazon.awscdk.services.rds.InstanceEngineBindOptions Maven / Gradle / Ivy

package software.amazon.awscdk.services.rds;

/**
 * The options passed to {@link IInstanceEngine.bind}.
 * 

* Example: *

*

 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.iam.*;
 * import software.amazon.awscdk.services.rds.*;
 * OptionGroup optionGroup;
 * Role role;
 * InstanceEngineBindOptions instanceEngineBindOptions = InstanceEngineBindOptions.builder()
 *         .domain("domain")
 *         .optionGroup(optionGroup)
 *         .s3ExportRole(role)
 *         .s3ImportRole(role)
 *         .timezone("timezone")
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.84.0 (build 5404dcf)", date = "2023-06-19T16:30:49.204Z") @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.rds.$Module.class, fqn = "@aws-cdk/aws-rds.InstanceEngineBindOptions") @software.amazon.jsii.Jsii.Proxy(InstanceEngineBindOptions.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public interface InstanceEngineBindOptions extends software.amazon.jsii.JsiiSerializable { /** * The Active Directory directory ID to create the DB instance in. *

* Default: - none (it's an optional field) */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getDomain() { return null; } /** * The option group of the database. *

* Default: - none */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.rds.IOptionGroup getOptionGroup() { return null; } /** * The role used for S3 exporting. *

* Default: - none */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.iam.IRole getS3ExportRole() { return null; } /** * The role used for S3 importing. *

* Default: - none */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.iam.IRole getS3ImportRole() { return null; } /** * The timezone of the database, set by the customer. *

* Default: - none (it's an optional field) */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getTimezone() { return null; } /** * @return a {@link Builder} of {@link InstanceEngineBindOptions} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link InstanceEngineBindOptions} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String domain; software.amazon.awscdk.services.rds.IOptionGroup optionGroup; software.amazon.awscdk.services.iam.IRole s3ExportRole; software.amazon.awscdk.services.iam.IRole s3ImportRole; java.lang.String timezone; /** * Sets the value of {@link InstanceEngineBindOptions#getDomain} * @param domain The Active Directory directory ID to create the DB instance in. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder domain(java.lang.String domain) { this.domain = domain; return this; } /** * Sets the value of {@link InstanceEngineBindOptions#getOptionGroup} * @param optionGroup The option group of the database. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder optionGroup(software.amazon.awscdk.services.rds.IOptionGroup optionGroup) { this.optionGroup = optionGroup; return this; } /** * Sets the value of {@link InstanceEngineBindOptions#getS3ExportRole} * @param s3ExportRole The role used for S3 exporting. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder s3ExportRole(software.amazon.awscdk.services.iam.IRole s3ExportRole) { this.s3ExportRole = s3ExportRole; return this; } /** * Sets the value of {@link InstanceEngineBindOptions#getS3ImportRole} * @param s3ImportRole The role used for S3 importing. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder s3ImportRole(software.amazon.awscdk.services.iam.IRole s3ImportRole) { this.s3ImportRole = s3ImportRole; return this; } /** * Sets the value of {@link InstanceEngineBindOptions#getTimezone} * @param timezone The timezone of the database, set by the customer. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder timezone(java.lang.String timezone) { this.timezone = timezone; return this; } /** * Builds the configured instance. * @return a new instance of {@link InstanceEngineBindOptions} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public InstanceEngineBindOptions build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link InstanceEngineBindOptions} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements InstanceEngineBindOptions { private final java.lang.String domain; private final software.amazon.awscdk.services.rds.IOptionGroup optionGroup; private final software.amazon.awscdk.services.iam.IRole s3ExportRole; private final software.amazon.awscdk.services.iam.IRole s3ImportRole; private final java.lang.String timezone; /** * 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.domain = software.amazon.jsii.Kernel.get(this, "domain", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.optionGroup = software.amazon.jsii.Kernel.get(this, "optionGroup", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.rds.IOptionGroup.class)); this.s3ExportRole = software.amazon.jsii.Kernel.get(this, "s3ExportRole", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iam.IRole.class)); this.s3ImportRole = software.amazon.jsii.Kernel.get(this, "s3ImportRole", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iam.IRole.class)); this.timezone = software.amazon.jsii.Kernel.get(this, "timezone", 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.domain = builder.domain; this.optionGroup = builder.optionGroup; this.s3ExportRole = builder.s3ExportRole; this.s3ImportRole = builder.s3ImportRole; this.timezone = builder.timezone; } @Override public final java.lang.String getDomain() { return this.domain; } @Override public final software.amazon.awscdk.services.rds.IOptionGroup getOptionGroup() { return this.optionGroup; } @Override public final software.amazon.awscdk.services.iam.IRole getS3ExportRole() { return this.s3ExportRole; } @Override public final software.amazon.awscdk.services.iam.IRole getS3ImportRole() { return this.s3ImportRole; } @Override public final java.lang.String getTimezone() { return this.timezone; } @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.getDomain() != null) { data.set("domain", om.valueToTree(this.getDomain())); } if (this.getOptionGroup() != null) { data.set("optionGroup", om.valueToTree(this.getOptionGroup())); } if (this.getS3ExportRole() != null) { data.set("s3ExportRole", om.valueToTree(this.getS3ExportRole())); } if (this.getS3ImportRole() != null) { data.set("s3ImportRole", om.valueToTree(this.getS3ImportRole())); } if (this.getTimezone() != null) { data.set("timezone", om.valueToTree(this.getTimezone())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@aws-cdk/aws-rds.InstanceEngineBindOptions")); 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; InstanceEngineBindOptions.Jsii$Proxy that = (InstanceEngineBindOptions.Jsii$Proxy) o; if (this.domain != null ? !this.domain.equals(that.domain) : that.domain != null) return false; if (this.optionGroup != null ? !this.optionGroup.equals(that.optionGroup) : that.optionGroup != null) return false; if (this.s3ExportRole != null ? !this.s3ExportRole.equals(that.s3ExportRole) : that.s3ExportRole != null) return false; if (this.s3ImportRole != null ? !this.s3ImportRole.equals(that.s3ImportRole) : that.s3ImportRole != null) return false; return this.timezone != null ? this.timezone.equals(that.timezone) : that.timezone == null; } @Override public final int hashCode() { int result = this.domain != null ? this.domain.hashCode() : 0; result = 31 * result + (this.optionGroup != null ? this.optionGroup.hashCode() : 0); result = 31 * result + (this.s3ExportRole != null ? this.s3ExportRole.hashCode() : 0); result = 31 * result + (this.s3ImportRole != null ? this.s3ImportRole.hashCode() : 0); result = 31 * result + (this.timezone != null ? this.timezone.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy