com.pepperize.cdk.dynamodb_backup.DataPipelineRestoreProps Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdk-dynamodb-backup Show documentation
Show all versions of cdk-dynamodb-backup Show documentation
Backup and restore AWS DynamoDB Table to AWS S3 Bucket with AWS Data Pipeline.
package com.pepperize.cdk.dynamodb_backup;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.106.0 (build e852934)", date = "2024-12-23T10:10:11.898Z")
@software.amazon.jsii.Jsii(module = com.pepperize.cdk.dynamodb_backup.$Module.class, fqn = "@pepperize/cdk-dynamodb-backup.DataPipelineRestoreProps")
@software.amazon.jsii.Jsii.Proxy(DataPipelineRestoreProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface DataPipelineRestoreProps extends software.amazon.jsii.JsiiSerializable, com.pepperize.cdk.dynamodb_backup.DataPipelineRestoreOptions {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull software.amazon.awscdk.services.s3.IBucket getRestoreBucket();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getRestoreFolder();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull software.amazon.awscdk.services.dynamodb.ITable getTable();
/**
* @return a {@link Builder} of {@link DataPipelineRestoreProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link DataPipelineRestoreProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
software.amazon.awscdk.services.s3.IBucket restoreBucket;
java.lang.String restoreFolder;
software.amazon.awscdk.services.dynamodb.ITable table;
java.lang.Number dynamoDbThroughputRatio;
software.amazon.awscdk.services.s3.IBucket logsBucket;
java.lang.String pipelineName;
/**
* Sets the value of {@link DataPipelineRestoreProps#getRestoreBucket}
* @param restoreBucket the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder restoreBucket(software.amazon.awscdk.services.s3.IBucket restoreBucket) {
this.restoreBucket = restoreBucket;
return this;
}
/**
* Sets the value of {@link DataPipelineRestoreProps#getRestoreFolder}
* @param restoreFolder the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder restoreFolder(java.lang.String restoreFolder) {
this.restoreFolder = restoreFolder;
return this;
}
/**
* Sets the value of {@link DataPipelineRestoreProps#getTable}
* @param table the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder table(software.amazon.awscdk.services.dynamodb.ITable table) {
this.table = table;
return this;
}
/**
* Sets the value of {@link DataPipelineRestoreProps#getDynamoDbThroughputRatio}
* @param dynamoDbThroughputRatio the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder dynamoDbThroughputRatio(java.lang.Number dynamoDbThroughputRatio) {
this.dynamoDbThroughputRatio = dynamoDbThroughputRatio;
return this;
}
/**
* Sets the value of {@link DataPipelineRestoreProps#getLogsBucket}
* @param logsBucket the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder logsBucket(software.amazon.awscdk.services.s3.IBucket logsBucket) {
this.logsBucket = logsBucket;
return this;
}
/**
* Sets the value of {@link DataPipelineRestoreProps#getPipelineName}
* @param pipelineName the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder pipelineName(java.lang.String pipelineName) {
this.pipelineName = pipelineName;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link DataPipelineRestoreProps}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public DataPipelineRestoreProps build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link DataPipelineRestoreProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DataPipelineRestoreProps {
private final software.amazon.awscdk.services.s3.IBucket restoreBucket;
private final java.lang.String restoreFolder;
private final software.amazon.awscdk.services.dynamodb.ITable table;
private final java.lang.Number dynamoDbThroughputRatio;
private final software.amazon.awscdk.services.s3.IBucket logsBucket;
private final java.lang.String pipelineName;
/**
* 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.restoreBucket = software.amazon.jsii.Kernel.get(this, "restoreBucket", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.IBucket.class));
this.restoreFolder = software.amazon.jsii.Kernel.get(this, "restoreFolder", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.table = software.amazon.jsii.Kernel.get(this, "table", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.dynamodb.ITable.class));
this.dynamoDbThroughputRatio = software.amazon.jsii.Kernel.get(this, "dynamoDbThroughputRatio", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.logsBucket = software.amazon.jsii.Kernel.get(this, "logsBucket", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.IBucket.class));
this.pipelineName = software.amazon.jsii.Kernel.get(this, "pipelineName", 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.restoreBucket = java.util.Objects.requireNonNull(builder.restoreBucket, "restoreBucket is required");
this.restoreFolder = java.util.Objects.requireNonNull(builder.restoreFolder, "restoreFolder is required");
this.table = java.util.Objects.requireNonNull(builder.table, "table is required");
this.dynamoDbThroughputRatio = builder.dynamoDbThroughputRatio;
this.logsBucket = builder.logsBucket;
this.pipelineName = builder.pipelineName;
}
@Override
public final software.amazon.awscdk.services.s3.IBucket getRestoreBucket() {
return this.restoreBucket;
}
@Override
public final java.lang.String getRestoreFolder() {
return this.restoreFolder;
}
@Override
public final software.amazon.awscdk.services.dynamodb.ITable getTable() {
return this.table;
}
@Override
public final java.lang.Number getDynamoDbThroughputRatio() {
return this.dynamoDbThroughputRatio;
}
@Override
public final software.amazon.awscdk.services.s3.IBucket getLogsBucket() {
return this.logsBucket;
}
@Override
public final java.lang.String getPipelineName() {
return this.pipelineName;
}
@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("restoreBucket", om.valueToTree(this.getRestoreBucket()));
data.set("restoreFolder", om.valueToTree(this.getRestoreFolder()));
data.set("table", om.valueToTree(this.getTable()));
if (this.getDynamoDbThroughputRatio() != null) {
data.set("dynamoDbThroughputRatio", om.valueToTree(this.getDynamoDbThroughputRatio()));
}
if (this.getLogsBucket() != null) {
data.set("logsBucket", om.valueToTree(this.getLogsBucket()));
}
if (this.getPipelineName() != null) {
data.set("pipelineName", om.valueToTree(this.getPipelineName()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@pepperize/cdk-dynamodb-backup.DataPipelineRestoreProps"));
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;
DataPipelineRestoreProps.Jsii$Proxy that = (DataPipelineRestoreProps.Jsii$Proxy) o;
if (!restoreBucket.equals(that.restoreBucket)) return false;
if (!restoreFolder.equals(that.restoreFolder)) return false;
if (!table.equals(that.table)) return false;
if (this.dynamoDbThroughputRatio != null ? !this.dynamoDbThroughputRatio.equals(that.dynamoDbThroughputRatio) : that.dynamoDbThroughputRatio != null) return false;
if (this.logsBucket != null ? !this.logsBucket.equals(that.logsBucket) : that.logsBucket != null) return false;
return this.pipelineName != null ? this.pipelineName.equals(that.pipelineName) : that.pipelineName == null;
}
@Override
public final int hashCode() {
int result = this.restoreBucket.hashCode();
result = 31 * result + (this.restoreFolder.hashCode());
result = 31 * result + (this.table.hashCode());
result = 31 * result + (this.dynamoDbThroughputRatio != null ? this.dynamoDbThroughputRatio.hashCode() : 0);
result = 31 * result + (this.logsBucket != null ? this.logsBucket.hashCode() : 0);
result = 31 * result + (this.pipelineName != null ? this.pipelineName.hashCode() : 0);
return result;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy