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

com.oracle.bmc.database.model.AutonomousDataWarehouseConnectionStrings Maven / Gradle / Ivy

/**
 * Copyright (c) 2016, 2023, 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.database.model;

/**
 * **Deprecated.** For information about connection strings to connect to an Oracle Autonomous Data
 * Warehouse, see {@link
 * #autonomousDatabaseConnectionStrings(AutonomousDatabaseConnectionStringsRequest)
 * autonomousDatabaseConnectionStrings}. 
* 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 #__explicitlySet__}. The {@link #hashCode()} and * {@link #equals(Object)} methods are implemented to take {@link #__explicitlySet__} into account. * The constructor, on the other hand, does not set {@link #__explicitlySet__} (since the * constructor cannot distinguish explicit {@code null} from unset {@code null}). */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = AutonomousDataWarehouseConnectionStrings.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetFilter.NAME) public final class AutonomousDataWarehouseConnectionStrings extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"high", "medium", "low", "allConnectionStrings"}) public AutonomousDataWarehouseConnectionStrings( String high, String medium, String low, java.util.Map allConnectionStrings) { super(); this.high = high; this.medium = medium; this.low = low; this.allConnectionStrings = allConnectionStrings; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** * The High database service provides the highest level of resources to each SQL statement * resulting in the highest performance, but supports the fewest number of concurrent SQL * statements. */ @com.fasterxml.jackson.annotation.JsonProperty("high") private String high; /** * The High database service provides the highest level of resources to each SQL statement * resulting in the highest performance, but supports the fewest number of concurrent SQL * statements. * * @param high the value to set * @return this builder */ public Builder high(String high) { this.high = high; this.__explicitlySet__.add("high"); return this; } /** * The Medium database service provides a lower level of resources to each SQL statement * potentially resulting a lower level of performance, but supports more concurrent SQL * statements. */ @com.fasterxml.jackson.annotation.JsonProperty("medium") private String medium; /** * The Medium database service provides a lower level of resources to each SQL statement * potentially resulting a lower level of performance, but supports more concurrent SQL * statements. * * @param medium the value to set * @return this builder */ public Builder medium(String medium) { this.medium = medium; this.__explicitlySet__.add("medium"); return this; } /** * The Low database service provides the least level of resources to each SQL statement, but * supports the most number of concurrent SQL statements. */ @com.fasterxml.jackson.annotation.JsonProperty("low") private String low; /** * The Low database service provides the least level of resources to each SQL statement, but * supports the most number of concurrent SQL statements. * * @param low the value to set * @return this builder */ public Builder low(String low) { this.low = low; this.__explicitlySet__.add("low"); return this; } /** * Returns all connection strings that can be used to connect to the Autonomous Data * Warehouse. For more information, please see [Predefined Database Service Names for * Autonomous Transaction * Processing](https://docs.oracle.com/en/cloud/paas/atp-cloud/atpug/connect-predefined.html#GUID-9747539B-FD46-44F1-8FF8-F5AC650F15BE) */ @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings") private java.util.Map allConnectionStrings; /** * Returns all connection strings that can be used to connect to the Autonomous Data * Warehouse. For more information, please see [Predefined Database Service Names for * Autonomous Transaction * Processing](https://docs.oracle.com/en/cloud/paas/atp-cloud/atpug/connect-predefined.html#GUID-9747539B-FD46-44F1-8FF8-F5AC650F15BE) * * @param allConnectionStrings the value to set * @return this builder */ public Builder allConnectionStrings(java.util.Map allConnectionStrings) { this.allConnectionStrings = allConnectionStrings; this.__explicitlySet__.add("allConnectionStrings"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public AutonomousDataWarehouseConnectionStrings build() { AutonomousDataWarehouseConnectionStrings model = new AutonomousDataWarehouseConnectionStrings( this.high, this.medium, this.low, this.allConnectionStrings); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(AutonomousDataWarehouseConnectionStrings model) { if (model.wasPropertyExplicitlySet("high")) { this.high(model.getHigh()); } if (model.wasPropertyExplicitlySet("medium")) { this.medium(model.getMedium()); } if (model.wasPropertyExplicitlySet("low")) { this.low(model.getLow()); } if (model.wasPropertyExplicitlySet("allConnectionStrings")) { this.allConnectionStrings(model.getAllConnectionStrings()); } return this; } } /** Create a new builder. */ public static Builder builder() { return new Builder(); } public Builder toBuilder() { return new Builder().copy(this); } /** * The High database service provides the highest level of resources to each SQL statement * resulting in the highest performance, but supports the fewest number of concurrent SQL * statements. */ @com.fasterxml.jackson.annotation.JsonProperty("high") private final String high; /** * The High database service provides the highest level of resources to each SQL statement * resulting in the highest performance, but supports the fewest number of concurrent SQL * statements. * * @return the value */ public String getHigh() { return high; } /** * The Medium database service provides a lower level of resources to each SQL statement * potentially resulting a lower level of performance, but supports more concurrent SQL * statements. */ @com.fasterxml.jackson.annotation.JsonProperty("medium") private final String medium; /** * The Medium database service provides a lower level of resources to each SQL statement * potentially resulting a lower level of performance, but supports more concurrent SQL * statements. * * @return the value */ public String getMedium() { return medium; } /** * The Low database service provides the least level of resources to each SQL statement, but * supports the most number of concurrent SQL statements. */ @com.fasterxml.jackson.annotation.JsonProperty("low") private final String low; /** * The Low database service provides the least level of resources to each SQL statement, but * supports the most number of concurrent SQL statements. * * @return the value */ public String getLow() { return low; } /** * Returns all connection strings that can be used to connect to the Autonomous Data Warehouse. * For more information, please see [Predefined Database Service Names for Autonomous * Transaction * Processing](https://docs.oracle.com/en/cloud/paas/atp-cloud/atpug/connect-predefined.html#GUID-9747539B-FD46-44F1-8FF8-F5AC650F15BE) */ @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings") private final java.util.Map allConnectionStrings; /** * Returns all connection strings that can be used to connect to the Autonomous Data Warehouse. * For more information, please see [Predefined Database Service Names for Autonomous * Transaction * Processing](https://docs.oracle.com/en/cloud/paas/atp-cloud/atpug/connect-predefined.html#GUID-9747539B-FD46-44F1-8FF8-F5AC650F15BE) * * @return the value */ public java.util.Map getAllConnectionStrings() { return allConnectionStrings; } @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("AutonomousDataWarehouseConnectionStrings("); sb.append("super=").append(super.toString()); sb.append("high=").append(String.valueOf(this.high)); sb.append(", medium=").append(String.valueOf(this.medium)); sb.append(", low=").append(String.valueOf(this.low)); sb.append(", allConnectionStrings=").append(String.valueOf(this.allConnectionStrings)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof AutonomousDataWarehouseConnectionStrings)) { return false; } AutonomousDataWarehouseConnectionStrings other = (AutonomousDataWarehouseConnectionStrings) o; return java.util.Objects.equals(this.high, other.high) && java.util.Objects.equals(this.medium, other.medium) && java.util.Objects.equals(this.low, other.low) && java.util.Objects.equals(this.allConnectionStrings, other.allConnectionStrings) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.high == null ? 43 : this.high.hashCode()); result = (result * PRIME) + (this.medium == null ? 43 : this.medium.hashCode()); result = (result * PRIME) + (this.low == null ? 43 : this.low.hashCode()); result = (result * PRIME) + (this.allConnectionStrings == null ? 43 : this.allConnectionStrings.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy