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

software.amazon.awscdk.services.glue.CfnConnectionProps Maven / Gradle / Ivy

package software.amazon.awscdk.services.glue;

/**
 * Properties for defining a `AWS::Glue::Connection`.
 * 

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-connection.html */ @javax.annotation.Generated(value = "jsii-pacmak/1.1.0 (build df55f5e)", date = "2020-03-24T17:01:34.341Z") @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.glue.$Module.class, fqn = "@aws-cdk/aws-glue.CfnConnectionProps") @software.amazon.jsii.Jsii.Proxy(CfnConnectionProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public interface CfnConnectionProps extends software.amazon.jsii.JsiiSerializable { /** * `AWS::Glue::Connection.CatalogId`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-connection.html#cfn-glue-connection-catalogid */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) @org.jetbrains.annotations.NotNull java.lang.String getCatalogId(); /** * `AWS::Glue::Connection.ConnectionInput`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-connection.html#cfn-glue-connection-connectioninput */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) @org.jetbrains.annotations.NotNull java.lang.Object getConnectionInput(); /** * @return a {@link Builder} of {@link CfnConnectionProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) static Builder builder() { return new Builder(); } /** * A builder for {@link CfnConnectionProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public static final class Builder { private java.lang.String catalogId; private java.lang.Object connectionInput; /** * Sets the value of {@link CfnConnectionProps#getCatalogId} * @param catalogId `AWS::Glue::Connection.CatalogId`. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public Builder catalogId(java.lang.String catalogId) { this.catalogId = catalogId; return this; } /** * Sets the value of {@link CfnConnectionProps#getConnectionInput} * @param connectionInput `AWS::Glue::Connection.ConnectionInput`. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public Builder connectionInput(software.amazon.awscdk.core.IResolvable connectionInput) { this.connectionInput = connectionInput; return this; } /** * Sets the value of {@link CfnConnectionProps#getConnectionInput} * @param connectionInput `AWS::Glue::Connection.ConnectionInput`. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public Builder connectionInput(software.amazon.awscdk.services.glue.CfnConnection.ConnectionInputProperty connectionInput) { this.connectionInput = connectionInput; return this; } /** * Builds the configured instance. * @return a new instance of {@link CfnConnectionProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public CfnConnectionProps build() { return new Jsii$Proxy(catalogId, connectionInput); } } /** * An implementation for {@link CfnConnectionProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnConnectionProps { private final java.lang.String catalogId; private final java.lang.Object connectionInput; /** * 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.catalogId = this.jsiiGet("catalogId", java.lang.String.class); this.connectionInput = this.jsiiGet("connectionInput", java.lang.Object.class); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ private Jsii$Proxy(final java.lang.String catalogId, final java.lang.Object connectionInput) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.catalogId = java.util.Objects.requireNonNull(catalogId, "catalogId is required"); this.connectionInput = java.util.Objects.requireNonNull(connectionInput, "connectionInput is required"); } @Override public java.lang.String getCatalogId() { return this.catalogId; } @Override public java.lang.Object getConnectionInput() { return this.connectionInput; } @Override 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("catalogId", om.valueToTree(this.getCatalogId())); data.set("connectionInput", om.valueToTree(this.getConnectionInput())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@aws-cdk/aws-glue.CfnConnectionProps")); 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 boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CfnConnectionProps.Jsii$Proxy that = (CfnConnectionProps.Jsii$Proxy) o; if (!catalogId.equals(that.catalogId)) return false; return this.connectionInput.equals(that.connectionInput); } @Override public int hashCode() { int result = this.catalogId.hashCode(); result = 31 * result + (this.connectionInput.hashCode()); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy