![JAR search and dependency download from the Maven repository](/logo.png)
com.oracle.bmc.goldengate.model.ConnectionSummary 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;
/**
* Summary of the 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 = ConnectionSummary.class)
@com.fasterxml.jackson.annotation.JsonSubTypes({
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = GoldenGateConnectionSummary.class,
name = "GOLDENGATE"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = KafkaSchemaRegistryConnectionSummary.class,
name = "KAFKA_SCHEMA_REGISTRY"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = JavaMessageServiceConnectionSummary.class,
name = "JAVA_MESSAGE_SERVICE"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = MicrosoftSqlserverConnectionSummary.class,
name = "MICROSOFT_SQLSERVER"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = OracleNosqlConnectionSummary.class,
name = "ORACLE_NOSQL"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = OracleConnectionSummary.class,
name = "ORACLE"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = SnowflakeConnectionSummary.class,
name = "SNOWFLAKE"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = AmazonKinesisConnectionSummary.class,
name = "AMAZON_KINESIS"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = RedisConnectionSummary.class,
name = "REDIS"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = OciObjectStorageConnectionSummary.class,
name = "OCI_OBJECT_STORAGE"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = AzureDataLakeStorageConnectionSummary.class,
name = "AZURE_DATA_LAKE_STORAGE"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = AzureSynapseConnectionSummary.class,
name = "AZURE_SYNAPSE_ANALYTICS"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = MongoDbConnectionSummary.class,
name = "MONGODB"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = GoogleBigQueryConnectionSummary.class,
name = "GOOGLE_BIGQUERY"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = AmazonS3ConnectionSummary.class,
name = "AMAZON_S3"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = PostgresqlConnectionSummary.class,
name = "POSTGRESQL"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = MysqlConnectionSummary.class,
name = "MYSQL"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = GenericConnectionSummary.class,
name = "GENERIC"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = KafkaConnectionSummary.class,
name = "KAFKA"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = ElasticsearchConnectionSummary.class,
name = "ELASTICSEARCH"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = Db2ConnectionSummary.class,
name = "DB2"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = AmazonRedshiftConnectionSummary.class,
name = "AMAZON_REDSHIFT"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = HdfsConnectionSummary.class,
name = "HDFS"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = GoogleCloudStorageConnectionSummary.class,
name = "GOOGLE_CLOUD_STORAGE")
})
@com.fasterxml.jackson.annotation.JsonFilter(
com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
public class ConnectionSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
@Deprecated
@java.beans.ConstructorProperties({
"id",
"displayName",
"description",
"compartmentId",
"freeformTags",
"definedTags",
"systemTags",
"lifecycleState",
"lifecycleDetails",
"timeCreated",
"timeUpdated",
"vaultId",
"keyId",
"ingressIps",
"nsgIds",
"subnetId",
"routingMethod",
"locks"
})
protected ConnectionSummary(
String id,
String displayName,
String description,
String compartmentId,
java.util.Map freeformTags,
java.util.Map> definedTags,
java.util.Map> systemTags,
Connection.LifecycleState lifecycleState,
String lifecycleDetails,
java.util.Date timeCreated,
java.util.Date timeUpdated,
String vaultId,
String keyId,
java.util.List ingressIps,
java.util.List nsgIds,
String subnetId,
RoutingMethod routingMethod,
java.util.List locks) {
super();
this.id = id;
this.displayName = displayName;
this.description = description;
this.compartmentId = compartmentId;
this.freeformTags = freeformTags;
this.definedTags = definedTags;
this.systemTags = systemTags;
this.lifecycleState = lifecycleState;
this.lifecycleDetails = lifecycleDetails;
this.timeCreated = timeCreated;
this.timeUpdated = timeUpdated;
this.vaultId = vaultId;
this.keyId = keyId;
this.ingressIps = ingressIps;
this.nsgIds = nsgIds;
this.subnetId = subnetId;
this.routingMethod = routingMethod;
this.locks = locks;
}
/**
* The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the
* connection being referenced.
*/
@com.fasterxml.jackson.annotation.JsonProperty("id")
private final String id;
/**
* The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the
* connection being referenced.
*
* @return the value
*/
public String getId() {
return id;
}
/** 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;
}
/**
* The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the
* compartment being referenced.
*/
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
private final String compartmentId;
/**
* The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the
* compartment being referenced.
*
* @return the value
*/
public String getCompartmentId() {
return compartmentId;
}
/**
* 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;
}
/**
* The system tags associated with this resource, if any. The system tags are set by Oracle
* Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more
* information, see [Resource
* Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
*
* Example: {@code {orcl-cloud: {free-tier-retain: true}}}
*/
@com.fasterxml.jackson.annotation.JsonProperty("systemTags")
private final java.util.Map> systemTags;
/**
* The system tags associated with this resource, if any. The system tags are set by Oracle
* Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more
* information, see [Resource
* Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
*
* Example: {@code {orcl-cloud: {free-tier-retain: true}}}
*
* @return the value
*/
public java.util.Map> getSystemTags() {
return systemTags;
}
/** Possible lifecycle states for connection. */
@com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
private final Connection.LifecycleState lifecycleState;
/**
* Possible lifecycle states for connection.
*
* @return the value
*/
public Connection.LifecycleState getLifecycleState() {
return lifecycleState;
}
/**
* Describes the object's current state in detail. For example, it can be used to provide
* actionable information for a resource in a Failed state.
*/
@com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
private final String lifecycleDetails;
/**
* Describes the object's current state in detail. For example, it can be used to provide
* actionable information for a resource in a Failed state.
*
* @return the value
*/
public String getLifecycleDetails() {
return lifecycleDetails;
}
/**
* The time the resource was created. The format is defined by
* [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}.
*/
@com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
private final java.util.Date timeCreated;
/**
* The time the resource was created. The format is defined by
* [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}.
*
* @return the value
*/
public java.util.Date getTimeCreated() {
return timeCreated;
}
/**
* The time the resource was last updated. The format is defined by
* [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}.
*/
@com.fasterxml.jackson.annotation.JsonProperty("timeUpdated")
private final java.util.Date timeUpdated;
/**
* The time the resource was last updated. The format is defined by
* [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}.
*
* @return the value
*/
public java.util.Date getTimeUpdated() {
return timeUpdated;
}
/**
* 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;
}
/**
* List of ingress IP addresses from where the GoldenGate deployment connects to this
* connection's privateIp. Customers may optionally set up ingress security rules to restrict
* traffic from these IP addresses.
*/
@com.fasterxml.jackson.annotation.JsonProperty("ingressIps")
private final java.util.List ingressIps;
/**
* List of ingress IP addresses from where the GoldenGate deployment connects to this
* connection's privateIp. Customers may optionally set up ingress security rules to restrict
* traffic from these IP addresses.
*
* @return the value
*/
public java.util.List getIngressIps() {
return ingressIps;
}
/**
* 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;
}
/** Locks associated with this resource. */
@com.fasterxml.jackson.annotation.JsonProperty("locks")
private final java.util.List locks;
/**
* Locks associated with this resource.
*
* @return the value
*/
public java.util.List getLocks() {
return locks;
}
@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("ConnectionSummary(");
sb.append("super=").append(super.toString());
sb.append("id=").append(String.valueOf(this.id));
sb.append(", displayName=").append(String.valueOf(this.displayName));
sb.append(", description=").append(String.valueOf(this.description));
sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
sb.append(", freeformTags=").append(String.valueOf(this.freeformTags));
sb.append(", definedTags=").append(String.valueOf(this.definedTags));
sb.append(", systemTags=").append(String.valueOf(this.systemTags));
sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState));
sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails));
sb.append(", timeCreated=").append(String.valueOf(this.timeCreated));
sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated));
sb.append(", vaultId=").append(String.valueOf(this.vaultId));
sb.append(", keyId=").append(String.valueOf(this.keyId));
sb.append(", ingressIps=").append(String.valueOf(this.ingressIps));
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(", locks=").append(String.valueOf(this.locks));
sb.append(")");
return sb.toString();
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof ConnectionSummary)) {
return false;
}
ConnectionSummary other = (ConnectionSummary) o;
return java.util.Objects.equals(this.id, other.id)
&& java.util.Objects.equals(this.displayName, other.displayName)
&& java.util.Objects.equals(this.description, other.description)
&& java.util.Objects.equals(this.compartmentId, other.compartmentId)
&& java.util.Objects.equals(this.freeformTags, other.freeformTags)
&& java.util.Objects.equals(this.definedTags, other.definedTags)
&& java.util.Objects.equals(this.systemTags, other.systemTags)
&& java.util.Objects.equals(this.lifecycleState, other.lifecycleState)
&& java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails)
&& java.util.Objects.equals(this.timeCreated, other.timeCreated)
&& java.util.Objects.equals(this.timeUpdated, other.timeUpdated)
&& java.util.Objects.equals(this.vaultId, other.vaultId)
&& java.util.Objects.equals(this.keyId, other.keyId)
&& java.util.Objects.equals(this.ingressIps, other.ingressIps)
&& java.util.Objects.equals(this.nsgIds, other.nsgIds)
&& java.util.Objects.equals(this.subnetId, other.subnetId)
&& java.util.Objects.equals(this.routingMethod, other.routingMethod)
&& java.util.Objects.equals(this.locks, other.locks)
&& super.equals(other);
}
@Override
public int hashCode() {
final int PRIME = 59;
int result = 1;
result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode());
result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode());
result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode());
result =
(result * PRIME)
+ (this.compartmentId == null ? 43 : this.compartmentId.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.systemTags == null ? 43 : this.systemTags.hashCode());
result =
(result * PRIME)
+ (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode());
result =
(result * PRIME)
+ (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode());
result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode());
result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.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.ingressIps == null ? 43 : this.ingressIps.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) + (this.locks == null ? 43 : this.locks.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
}