io.github.randyridgley.cdk.datalake.constructs.NameBuilderParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdk-datalake-constructs Show documentation
Show all versions of cdk-datalake-constructs Show documentation
AWS CDK Constructs that can be used to create datalakes/meshes and more
package io.github.randyridgley.cdk.datalake.constructs;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.42.0 (build 5f6b62c)", date = "2021-11-05T12:40:41.658Z")
@software.amazon.jsii.Jsii(module = io.github.randyridgley.cdk.datalake.constructs.$Module.class, fqn = "@randyridgley/cdk-datalake-constructs.NameBuilderParameters")
@software.amazon.jsii.Jsii.Proxy(NameBuilderParameters.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface NameBuilderParameters extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.String getName();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.String getAccountId() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.String getRegion() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.String getResourceUse() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.String getStage() {
return null;
}
/**
* @return a {@link Builder} of {@link NameBuilderParameters}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link NameBuilderParameters}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.String name;
private java.lang.String accountId;
private java.lang.String region;
private java.lang.String resourceUse;
private java.lang.String stage;
/**
* Sets the value of {@link NameBuilderParameters#getName}
* @param name the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder name(java.lang.String name) {
this.name = name;
return this;
}
/**
* Sets the value of {@link NameBuilderParameters#getAccountId}
* @param accountId the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder accountId(java.lang.String accountId) {
this.accountId = accountId;
return this;
}
/**
* Sets the value of {@link NameBuilderParameters#getRegion}
* @param region the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder region(java.lang.String region) {
this.region = region;
return this;
}
/**
* Sets the value of {@link NameBuilderParameters#getResourceUse}
* @param resourceUse the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder resourceUse(java.lang.String resourceUse) {
this.resourceUse = resourceUse;
return this;
}
/**
* Sets the value of {@link NameBuilderParameters#getStage}
* @param stage the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder stage(java.lang.String stage) {
this.stage = stage;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link NameBuilderParameters}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public NameBuilderParameters build() {
return new Jsii$Proxy(name, accountId, region, resourceUse, stage);
}
}
/**
* An implementation for {@link NameBuilderParameters}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NameBuilderParameters {
private final java.lang.String name;
private final java.lang.String accountId;
private final java.lang.String region;
private final java.lang.String resourceUse;
private final java.lang.String stage;
/**
* 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.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.accountId = software.amazon.jsii.Kernel.get(this, "accountId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.region = software.amazon.jsii.Kernel.get(this, "region", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.resourceUse = software.amazon.jsii.Kernel.get(this, "resourceUse", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.stage = software.amazon.jsii.Kernel.get(this, "stage", 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 java.lang.String name, final java.lang.String accountId, final java.lang.String region, final java.lang.String resourceUse, final java.lang.String stage) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.name = java.util.Objects.requireNonNull(name, "name is required");
this.accountId = accountId;
this.region = region;
this.resourceUse = resourceUse;
this.stage = stage;
}
@Override
public final java.lang.String getName() {
return this.name;
}
@Override
public final java.lang.String getAccountId() {
return this.accountId;
}
@Override
public final java.lang.String getRegion() {
return this.region;
}
@Override
public final java.lang.String getResourceUse() {
return this.resourceUse;
}
@Override
public final java.lang.String getStage() {
return this.stage;
}
@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("name", om.valueToTree(this.getName()));
if (this.getAccountId() != null) {
data.set("accountId", om.valueToTree(this.getAccountId()));
}
if (this.getRegion() != null) {
data.set("region", om.valueToTree(this.getRegion()));
}
if (this.getResourceUse() != null) {
data.set("resourceUse", om.valueToTree(this.getResourceUse()));
}
if (this.getStage() != null) {
data.set("stage", om.valueToTree(this.getStage()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@randyridgley/cdk-datalake-constructs.NameBuilderParameters"));
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;
NameBuilderParameters.Jsii$Proxy that = (NameBuilderParameters.Jsii$Proxy) o;
if (!name.equals(that.name)) return false;
if (this.accountId != null ? !this.accountId.equals(that.accountId) : that.accountId != null) return false;
if (this.region != null ? !this.region.equals(that.region) : that.region != null) return false;
if (this.resourceUse != null ? !this.resourceUse.equals(that.resourceUse) : that.resourceUse != null) return false;
return this.stage != null ? this.stage.equals(that.stage) : that.stage == null;
}
@Override
public final int hashCode() {
int result = this.name.hashCode();
result = 31 * result + (this.accountId != null ? this.accountId.hashCode() : 0);
result = 31 * result + (this.region != null ? this.region.hashCode() : 0);
result = 31 * result + (this.resourceUse != null ? this.resourceUse.hashCode() : 0);
result = 31 * result + (this.stage != null ? this.stage.hashCode() : 0);
return result;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy