![JAR search and dependency download from the Maven repository](/logo.png)
com.oracle.bmc.goldengate.model.UpdateConnectionDetails Maven / Gradle / Ivy
Show all versions of oci-java-sdk-shaded-full Show documentation
/**
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.goldengate.model;
/**
* The information to update a Connection.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model
* distinguishes fields that are {@code null} because they are unset from fields that are explicitly
* set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
* set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
* #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
* fields into account. The constructor, on the other hand, does not take the explicitly set fields
* into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
* null}).
*/
@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407")
@com.fasterxml.jackson.annotation.JsonTypeInfo(
use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
property = "connectionType",
defaultImpl = UpdateConnectionDetails.class)
@com.fasterxml.jackson.annotation.JsonSubTypes({
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateElasticsearchConnectionDetails.class,
name = "ELASTICSEARCH"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateGoogleBigQueryConnectionDetails.class,
name = "GOOGLE_BIGQUERY"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateOracleConnectionDetails.class,
name = "ORACLE"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateAmazonRedshiftConnectionDetails.class,
name = "AMAZON_REDSHIFT"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateOciObjectStorageConnectionDetails.class,
name = "OCI_OBJECT_STORAGE"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateRedisConnectionDetails.class,
name = "REDIS"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateMongoDbConnectionDetails.class,
name = "MONGODB"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateGoogleCloudStorageConnectionDetails.class,
name = "GOOGLE_CLOUD_STORAGE"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateAzureDataLakeStorageConnectionDetails.class,
name = "AZURE_DATA_LAKE_STORAGE"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateAmazonKinesisConnectionDetails.class,
name = "AMAZON_KINESIS"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateJavaMessageServiceConnectionDetails.class,
name = "JAVA_MESSAGE_SERVICE"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateGoldenGateConnectionDetails.class,
name = "GOLDENGATE"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdatePostgresqlConnectionDetails.class,
name = "POSTGRESQL"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateMicrosoftSqlserverConnectionDetails.class,
name = "MICROSOFT_SQLSERVER"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateOracleNosqlConnectionDetails.class,
name = "ORACLE_NOSQL"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateKafkaSchemaRegistryConnectionDetails.class,
name = "KAFKA_SCHEMA_REGISTRY"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateAmazonS3ConnectionDetails.class,
name = "AMAZON_S3"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateSnowflakeConnectionDetails.class,
name = "SNOWFLAKE"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateHdfsConnectionDetails.class,
name = "HDFS"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateMysqlConnectionDetails.class,
name = "MYSQL"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateKafkaConnectionDetails.class,
name = "KAFKA"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateDb2ConnectionDetails.class,
name = "DB2"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateGenericConnectionDetails.class,
name = "GENERIC"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpdateAzureSynapseConnectionDetails.class,
name = "AZURE_SYNAPSE_ANALYTICS")
})
@com.fasterxml.jackson.annotation.JsonFilter(
com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
public class UpdateConnectionDetails
extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
@Deprecated
@java.beans.ConstructorProperties({
"displayName",
"description",
"freeformTags",
"definedTags",
"vaultId",
"keyId",
"nsgIds",
"subnetId",
"routingMethod"
})
protected UpdateConnectionDetails(
String displayName,
String description,
java.util.Map freeformTags,
java.util.Map> definedTags,
String vaultId,
String keyId,
java.util.List nsgIds,
String subnetId,
RoutingMethod routingMethod) {
super();
this.displayName = displayName;
this.description = description;
this.freeformTags = freeformTags;
this.definedTags = definedTags;
this.vaultId = vaultId;
this.keyId = keyId;
this.nsgIds = nsgIds;
this.subnetId = subnetId;
this.routingMethod = routingMethod;
}
/** An object's Display Name. */
@com.fasterxml.jackson.annotation.JsonProperty("displayName")
private final String displayName;
/**
* An object's Display Name.
*
* @return the value
*/
public String getDisplayName() {
return displayName;
}
/** Metadata about this specific object. */
@com.fasterxml.jackson.annotation.JsonProperty("description")
private final String description;
/**
* Metadata about this specific object.
*
* @return the value
*/
public String getDescription() {
return description;
}
/**
* A simple key-value pair that is applied without any predefined name, type, or scope. Exists
* for cross-compatibility only.
*
* Example: {@code {"bar-key": "value"}}
*/
@com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
private final java.util.Map freeformTags;
/**
* A simple key-value pair that is applied without any predefined name, type, or scope. Exists
* for cross-compatibility only.
*
* Example: {@code {"bar-key": "value"}}
*
* @return the value
*/
public java.util.Map getFreeformTags() {
return freeformTags;
}
/**
* Tags defined for this resource. Each key is predefined and scoped to a namespace.
*
* Example: {@code {"foo-namespace": {"bar-key": "value"}}}
*/
@com.fasterxml.jackson.annotation.JsonProperty("definedTags")
private final java.util.Map> definedTags;
/**
* Tags defined for this resource. Each key is predefined and scoped to a namespace.
*
* Example: {@code {"foo-namespace": {"bar-key": "value"}}}
*
* @return the value
*/
public java.util.Map> getDefinedTags() {
return definedTags;
}
/**
* Refers to the customer's vault OCID. If provided, it references a vault where GoldenGate can
* manage secrets. Customers must add policies to permit GoldenGate to manage secrets contained
* within this vault.
*/
@com.fasterxml.jackson.annotation.JsonProperty("vaultId")
private final String vaultId;
/**
* Refers to the customer's vault OCID. If provided, it references a vault where GoldenGate can
* manage secrets. Customers must add policies to permit GoldenGate to manage secrets contained
* within this vault.
*
* @return the value
*/
public String getVaultId() {
return vaultId;
}
/**
* Refers to the customer's master key OCID. If provided, it references a key to manage secrets.
* Customers must add policies to permit GoldenGate to use this key.
*/
@com.fasterxml.jackson.annotation.JsonProperty("keyId")
private final String keyId;
/**
* Refers to the customer's master key OCID. If provided, it references a key to manage secrets.
* Customers must add policies to permit GoldenGate to use this key.
*
* @return the value
*/
public String getKeyId() {
return keyId;
}
/**
* An array of Network Security Group OCIDs used to define network access for either Deployments
* or Connections.
*/
@com.fasterxml.jackson.annotation.JsonProperty("nsgIds")
private final java.util.List nsgIds;
/**
* An array of Network Security Group OCIDs used to define network access for either Deployments
* or Connections.
*
* @return the value
*/
public java.util.List getNsgIds() {
return nsgIds;
}
/**
* The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the
* target subnet of the dedicated connection.
*/
@com.fasterxml.jackson.annotation.JsonProperty("subnetId")
private final String subnetId;
/**
* The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the
* target subnet of the dedicated connection.
*
* @return the value
*/
public String getSubnetId() {
return subnetId;
}
/**
* Controls the network traffic direction to the target: SHARED_SERVICE_ENDPOINT: Traffic flows
* through the Goldengate Service's network to public hosts. Cannot be used for private targets.
* SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private
* endpoint through the deployment's subnet. DEDICATED_ENDPOINT: A dedicated private endpoint is
* created in the target VCN subnet for the connection. The subnetId is required when
* DEDICATED_ENDPOINT networking is selected.
*/
@com.fasterxml.jackson.annotation.JsonProperty("routingMethod")
private final RoutingMethod routingMethod;
/**
* Controls the network traffic direction to the target: SHARED_SERVICE_ENDPOINT: Traffic flows
* through the Goldengate Service's network to public hosts. Cannot be used for private targets.
* SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private
* endpoint through the deployment's subnet. DEDICATED_ENDPOINT: A dedicated private endpoint is
* created in the target VCN subnet for the connection. The subnetId is required when
* DEDICATED_ENDPOINT networking is selected.
*
* @return the value
*/
public RoutingMethod getRoutingMethod() {
return routingMethod;
}
@Override
public String toString() {
return this.toString(true);
}
/**
* Return a string representation of the object.
*
* @param includeByteArrayContents true to include the full contents of byte arrays
* @return string representation
*/
public String toString(boolean includeByteArrayContents) {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("UpdateConnectionDetails(");
sb.append("super=").append(super.toString());
sb.append("displayName=").append(String.valueOf(this.displayName));
sb.append(", description=").append(String.valueOf(this.description));
sb.append(", freeformTags=").append(String.valueOf(this.freeformTags));
sb.append(", definedTags=").append(String.valueOf(this.definedTags));
sb.append(", vaultId=").append(String.valueOf(this.vaultId));
sb.append(", keyId=").append(String.valueOf(this.keyId));
sb.append(", nsgIds=").append(String.valueOf(this.nsgIds));
sb.append(", subnetId=").append(String.valueOf(this.subnetId));
sb.append(", routingMethod=").append(String.valueOf(this.routingMethod));
sb.append(")");
return sb.toString();
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof UpdateConnectionDetails)) {
return false;
}
UpdateConnectionDetails other = (UpdateConnectionDetails) o;
return java.util.Objects.equals(this.displayName, other.displayName)
&& java.util.Objects.equals(this.description, other.description)
&& java.util.Objects.equals(this.freeformTags, other.freeformTags)
&& java.util.Objects.equals(this.definedTags, other.definedTags)
&& java.util.Objects.equals(this.vaultId, other.vaultId)
&& java.util.Objects.equals(this.keyId, other.keyId)
&& java.util.Objects.equals(this.nsgIds, other.nsgIds)
&& java.util.Objects.equals(this.subnetId, other.subnetId)
&& java.util.Objects.equals(this.routingMethod, other.routingMethod)
&& super.equals(other);
}
@Override
public int hashCode() {
final int PRIME = 59;
int result = 1;
result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode());
result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode());
result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode());
result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode());
result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode());
result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode());
result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode());
result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode());
result =
(result * PRIME)
+ (this.routingMethod == null ? 43 : this.routingMethod.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
}