com.gammarer.cdk.aws.rds_database_running_scheduler.TargetProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-rds-database-running-scheduler Show documentation
Show all versions of aws-rds-database-running-scheduler Show documentation
AWS RDS Database Running Scheduler
package com.gammarer.cdk.aws.rds_database_running_scheduler;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.93.0 (build 1706ca5)", date = "2024-01-17T09:03:37.998Z")
@software.amazon.jsii.Jsii(module = com.gammarer.cdk.aws.rds_database_running_scheduler.$Module.class, fqn = "@gammarer/aws-rds-database-running-scheduler.TargetProperty")
@software.amazon.jsii.Jsii.Proxy(TargetProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface TargetProperty extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.util.List getIdentifiers();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull com.gammarer.cdk.aws.rds_database_running_scheduler.ScheduleProperty getStartSchedule();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull com.gammarer.cdk.aws.rds_database_running_scheduler.ScheduleProperty getStopSchedule();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull com.gammarer.cdk.aws.rds_database_running_scheduler.DatabaseType getType();
/**
* @return a {@link Builder} of {@link TargetProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link TargetProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.util.List identifiers;
com.gammarer.cdk.aws.rds_database_running_scheduler.ScheduleProperty startSchedule;
com.gammarer.cdk.aws.rds_database_running_scheduler.ScheduleProperty stopSchedule;
com.gammarer.cdk.aws.rds_database_running_scheduler.DatabaseType type;
/**
* Sets the value of {@link TargetProperty#getIdentifiers}
* @param identifiers the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder identifiers(java.util.List identifiers) {
this.identifiers = identifiers;
return this;
}
/**
* Sets the value of {@link TargetProperty#getStartSchedule}
* @param startSchedule the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder startSchedule(com.gammarer.cdk.aws.rds_database_running_scheduler.ScheduleProperty startSchedule) {
this.startSchedule = startSchedule;
return this;
}
/**
* Sets the value of {@link TargetProperty#getStopSchedule}
* @param stopSchedule the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder stopSchedule(com.gammarer.cdk.aws.rds_database_running_scheduler.ScheduleProperty stopSchedule) {
this.stopSchedule = stopSchedule;
return this;
}
/**
* Sets the value of {@link TargetProperty#getType}
* @param type the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder type(com.gammarer.cdk.aws.rds_database_running_scheduler.DatabaseType type) {
this.type = type;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link TargetProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public TargetProperty build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link TargetProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TargetProperty {
private final java.util.List identifiers;
private final com.gammarer.cdk.aws.rds_database_running_scheduler.ScheduleProperty startSchedule;
private final com.gammarer.cdk.aws.rds_database_running_scheduler.ScheduleProperty stopSchedule;
private final com.gammarer.cdk.aws.rds_database_running_scheduler.DatabaseType type;
/**
* 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.identifiers = software.amazon.jsii.Kernel.get(this, "identifiers", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)));
this.startSchedule = software.amazon.jsii.Kernel.get(this, "startSchedule", software.amazon.jsii.NativeType.forClass(com.gammarer.cdk.aws.rds_database_running_scheduler.ScheduleProperty.class));
this.stopSchedule = software.amazon.jsii.Kernel.get(this, "stopSchedule", software.amazon.jsii.NativeType.forClass(com.gammarer.cdk.aws.rds_database_running_scheduler.ScheduleProperty.class));
this.type = software.amazon.jsii.Kernel.get(this, "type", software.amazon.jsii.NativeType.forClass(com.gammarer.cdk.aws.rds_database_running_scheduler.DatabaseType.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.identifiers = java.util.Objects.requireNonNull(builder.identifiers, "identifiers is required");
this.startSchedule = java.util.Objects.requireNonNull(builder.startSchedule, "startSchedule is required");
this.stopSchedule = java.util.Objects.requireNonNull(builder.stopSchedule, "stopSchedule is required");
this.type = java.util.Objects.requireNonNull(builder.type, "type is required");
}
@Override
public final java.util.List getIdentifiers() {
return this.identifiers;
}
@Override
public final com.gammarer.cdk.aws.rds_database_running_scheduler.ScheduleProperty getStartSchedule() {
return this.startSchedule;
}
@Override
public final com.gammarer.cdk.aws.rds_database_running_scheduler.ScheduleProperty getStopSchedule() {
return this.stopSchedule;
}
@Override
public final com.gammarer.cdk.aws.rds_database_running_scheduler.DatabaseType getType() {
return this.type;
}
@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("identifiers", om.valueToTree(this.getIdentifiers()));
data.set("startSchedule", om.valueToTree(this.getStartSchedule()));
data.set("stopSchedule", om.valueToTree(this.getStopSchedule()));
data.set("type", om.valueToTree(this.getType()));
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@gammarer/aws-rds-database-running-scheduler.TargetProperty"));
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;
TargetProperty.Jsii$Proxy that = (TargetProperty.Jsii$Proxy) o;
if (!identifiers.equals(that.identifiers)) return false;
if (!startSchedule.equals(that.startSchedule)) return false;
if (!stopSchedule.equals(that.stopSchedule)) return false;
return this.type.equals(that.type);
}
@Override
public final int hashCode() {
int result = this.identifiers.hashCode();
result = 31 * result + (this.startSchedule.hashCode());
result = 31 * result + (this.stopSchedule.hashCode());
result = 31 * result + (this.type.hashCode());
return result;
}
}
}