com.pepperize.cdk.dynamodb_backup.DataPipelineBackupOptions 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.894Z")
@software.amazon.jsii.Jsii(module = com.pepperize.cdk.dynamodb_backup.$Module.class, fqn = "@pepperize/cdk-dynamodb-backup.DataPipelineBackupOptions")
@software.amazon.jsii.Jsii.Proxy(DataPipelineBackupOptions.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface DataPipelineBackupOptions extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getDynamoDbThroughputRatio() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.s3.IBucket getLogsBucket() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getPipelineName() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.Duration getSchedule() {
return null;
}
/**
* @return a {@link Builder} of {@link DataPipelineBackupOptions}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link DataPipelineBackupOptions}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Number dynamoDbThroughputRatio;
software.amazon.awscdk.services.s3.IBucket logsBucket;
java.lang.String pipelineName;
software.amazon.awscdk.Duration schedule;
/**
* Sets the value of {@link DataPipelineBackupOptions#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 DataPipelineBackupOptions#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 DataPipelineBackupOptions#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;
}
/**
* Sets the value of {@link DataPipelineBackupOptions#getSchedule}
* @param schedule the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder schedule(software.amazon.awscdk.Duration schedule) {
this.schedule = schedule;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link DataPipelineBackupOptions}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public DataPipelineBackupOptions build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link DataPipelineBackupOptions}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DataPipelineBackupOptions {
private final java.lang.Number dynamoDbThroughputRatio;
private final software.amazon.awscdk.services.s3.IBucket logsBucket;
private final java.lang.String pipelineName;
private final software.amazon.awscdk.Duration schedule;
/**
* 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.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));
this.schedule = software.amazon.jsii.Kernel.get(this, "schedule", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.Duration.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.dynamoDbThroughputRatio = builder.dynamoDbThroughputRatio;
this.logsBucket = builder.logsBucket;
this.pipelineName = builder.pipelineName;
this.schedule = builder.schedule;
}
@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
public final software.amazon.awscdk.Duration getSchedule() {
return this.schedule;
}
@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.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()));
}
if (this.getSchedule() != null) {
data.set("schedule", om.valueToTree(this.getSchedule()));
}
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.DataPipelineBackupOptions"));
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;
DataPipelineBackupOptions.Jsii$Proxy that = (DataPipelineBackupOptions.Jsii$Proxy) o;
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;
if (this.pipelineName != null ? !this.pipelineName.equals(that.pipelineName) : that.pipelineName != null) return false;
return this.schedule != null ? this.schedule.equals(that.schedule) : that.schedule == null;
}
@Override
public final int hashCode() {
int 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);
result = 31 * result + (this.schedule != null ? this.schedule.hashCode() : 0);
return result;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy