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

com.hashicorp.cdktf.providers.snowflake.failover_group.FailoverGroupFromReplica Maven / Gradle / Ivy

The newest version!
package com.hashicorp.cdktf.providers.snowflake.failover_group;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-08-03T03:24:50.396Z")
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.providers.snowflake.$Module.class, fqn = "@cdktf/provider-snowflake.failoverGroup.FailoverGroupFromReplica")
@software.amazon.jsii.Jsii.Proxy(FailoverGroupFromReplica.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface FailoverGroupFromReplica extends software.amazon.jsii.JsiiSerializable {

    /**
     * Identifier for the primary failover group in the source account.
     * 

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/failover_group#name FailoverGroup#name} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getName(); /** * Name of your Snowflake organization. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/failover_group#organization_name FailoverGroup#organization_name} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getOrganizationName(); /** * Source account from which you are enabling replication and failover of the specified objects. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/failover_group#source_account_name FailoverGroup#source_account_name} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getSourceAccountName(); /** * @return a {@link Builder} of {@link FailoverGroupFromReplica} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link FailoverGroupFromReplica} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String name; java.lang.String organizationName; java.lang.String sourceAccountName; /** * Sets the value of {@link FailoverGroupFromReplica#getName} * @param name Identifier for the primary failover group in the source account. This parameter is required. * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/failover_group#name FailoverGroup#name} * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder name(java.lang.String name) { this.name = name; return this; } /** * Sets the value of {@link FailoverGroupFromReplica#getOrganizationName} * @param organizationName Name of your Snowflake organization. This parameter is required. * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/failover_group#organization_name FailoverGroup#organization_name} * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder organizationName(java.lang.String organizationName) { this.organizationName = organizationName; return this; } /** * Sets the value of {@link FailoverGroupFromReplica#getSourceAccountName} * @param sourceAccountName Source account from which you are enabling replication and failover of the specified objects. This parameter is required. * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/failover_group#source_account_name FailoverGroup#source_account_name} * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder sourceAccountName(java.lang.String sourceAccountName) { this.sourceAccountName = sourceAccountName; return this; } /** * Builds the configured instance. * @return a new instance of {@link FailoverGroupFromReplica} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public FailoverGroupFromReplica build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link FailoverGroupFromReplica} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements FailoverGroupFromReplica { private final java.lang.String name; private final java.lang.String organizationName; private final java.lang.String sourceAccountName; /** * 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.organizationName = software.amazon.jsii.Kernel.get(this, "organizationName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.sourceAccountName = software.amazon.jsii.Kernel.get(this, "sourceAccountName", 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 Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.name = java.util.Objects.requireNonNull(builder.name, "name is required"); this.organizationName = java.util.Objects.requireNonNull(builder.organizationName, "organizationName is required"); this.sourceAccountName = java.util.Objects.requireNonNull(builder.sourceAccountName, "sourceAccountName is required"); } @Override public final java.lang.String getName() { return this.name; } @Override public final java.lang.String getOrganizationName() { return this.organizationName; } @Override public final java.lang.String getSourceAccountName() { return this.sourceAccountName; } @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())); data.set("organizationName", om.valueToTree(this.getOrganizationName())); data.set("sourceAccountName", om.valueToTree(this.getSourceAccountName())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@cdktf/provider-snowflake.failoverGroup.FailoverGroupFromReplica")); 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; FailoverGroupFromReplica.Jsii$Proxy that = (FailoverGroupFromReplica.Jsii$Proxy) o; if (!name.equals(that.name)) return false; if (!organizationName.equals(that.organizationName)) return false; return this.sourceAccountName.equals(that.sourceAccountName); } @Override public final int hashCode() { int result = this.name.hashCode(); result = 31 * result + (this.organizationName.hashCode()); result = 31 * result + (this.sourceAccountName.hashCode()); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy