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

software.amazon.awscdk.services.redshift.CfnClusterSecurityGroupProps Maven / Gradle / Ivy

There is a newer version: 1.204.0
Show newest version
package software.amazon.awscdk.services.redshift;

/**
 * Properties for defining a `AWS::Redshift::ClusterSecurityGroup`.
 * 

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersecuritygroup.html */ @javax.annotation.Generated(value = "jsii-pacmak/1.3.0 (build 8ae966b)", date = "2020-04-17T19:11:12.470Z") @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.redshift.$Module.class, fqn = "@aws-cdk/aws-redshift.CfnClusterSecurityGroupProps") @software.amazon.jsii.Jsii.Proxy(CfnClusterSecurityGroupProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public interface CfnClusterSecurityGroupProps extends software.amazon.jsii.JsiiSerializable { /** * `AWS::Redshift::ClusterSecurityGroup.Description`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersecuritygroup.html#cfn-redshift-clustersecuritygroup-description */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) @org.jetbrains.annotations.NotNull java.lang.String getDescription(); /** * `AWS::Redshift::ClusterSecurityGroup.Tags`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersecuritygroup.html#cfn-redshift-clustersecuritygroup-tags */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) default @org.jetbrains.annotations.Nullable java.util.List getTags() { return null; } /** * @return a {@link Builder} of {@link CfnClusterSecurityGroupProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) static Builder builder() { return new Builder(); } /** * A builder for {@link CfnClusterSecurityGroupProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public static final class Builder { private java.lang.String description; private java.util.List tags; /** * Sets the value of {@link CfnClusterSecurityGroupProps#getDescription} * @param description `AWS::Redshift::ClusterSecurityGroup.Description`. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public Builder description(java.lang.String description) { this.description = description; return this; } /** * Sets the value of {@link CfnClusterSecurityGroupProps#getTags} * @param tags `AWS::Redshift::ClusterSecurityGroup.Tags`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public Builder tags(java.util.List tags) { this.tags = tags; return this; } /** * Builds the configured instance. * @return a new instance of {@link CfnClusterSecurityGroupProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) public CfnClusterSecurityGroupProps build() { return new Jsii$Proxy(description, tags); } } /** * An implementation for {@link CfnClusterSecurityGroupProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnClusterSecurityGroupProps { private final java.lang.String description; private final java.util.List tags; /** * 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.description = this.jsiiGet("description", java.lang.String.class); this.tags = this.jsiiGet("tags", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.core.CfnTag.class))); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ private Jsii$Proxy(final java.lang.String description, final java.util.List tags) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.description = java.util.Objects.requireNonNull(description, "description is required"); this.tags = tags; } @Override public java.lang.String getDescription() { return this.description; } @Override public java.util.List getTags() { return this.tags; } @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("description", om.valueToTree(this.getDescription())); if (this.getTags() != null) { data.set("tags", om.valueToTree(this.getTags())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@aws-cdk/aws-redshift.CfnClusterSecurityGroupProps")); 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; CfnClusterSecurityGroupProps.Jsii$Proxy that = (CfnClusterSecurityGroupProps.Jsii$Proxy) o; if (!description.equals(that.description)) return false; return this.tags != null ? this.tags.equals(that.tags) : that.tags == null; } @Override public int hashCode() { int result = this.description.hashCode(); result = 31 * result + (this.tags != null ? this.tags.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy