/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.datamigration.v1.model;

/**
 * Specifies connection parameters required specifically for Oracle databases.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Database Migration API. For a detailed explanation
 * see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class OracleConnectionProfile extends com.google.api.client.json.GenericJson {

  /**
   * Required. Database service for the Oracle connection.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String databaseService;

  /**
   * Forward SSH tunnel connectivity.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private ForwardSshTunnelConnectivity forwardSshConnectivity;

  /**
   * Required. The IP or hostname of the source Oracle database.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String host;

  /**
   * Required. Input only. The password for the user that Database Migration Service will be using
   * to connect to the database. This field is not returned on request, and the value is encrypted
   * when stored in Database Migration Service.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String password;

  /**
   * Output only. Indicates whether a new password is included in the request.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean passwordSet;

  /**
   * Required. The network port of the source Oracle database.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer port;

  /**
   * Private connectivity.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private PrivateConnectivity privateConnectivity;

  /**
   * SSL configuration for the connection to the source Oracle database. * Only `SERVER_ONLY`
   * configuration is supported for Oracle SSL. * SSL is supported for Oracle versions 12 and above.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private SslConfig ssl;

  /**
   * Static Service IP connectivity.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private StaticServiceIpConnectivity staticServiceIpConnectivity;

  /**
   * Required. The username that Database Migration Service will use to connect to the database. The
   * value is encrypted when stored in Database Migration Service.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String username;

  /**
   * Required. Database service for the Oracle connection.
   * @return value or {@code null} for none
   */
  public java.lang.String getDatabaseService() {
    return databaseService;
  }

  /**
   * Required. Database service for the Oracle connection.
   * @param databaseService databaseService or {@code null} for none
   */
  public OracleConnectionProfile setDatabaseService(java.lang.String databaseService) {
    this.databaseService = databaseService;
    return this;
  }

  /**
   * Forward SSH tunnel connectivity.
   * @return value or {@code null} for none
   */
  public ForwardSshTunnelConnectivity getForwardSshConnectivity() {
    return forwardSshConnectivity;
  }

  /**
   * Forward SSH tunnel connectivity.
   * @param forwardSshConnectivity forwardSshConnectivity or {@code null} for none
   */
  public OracleConnectionProfile setForwardSshConnectivity(ForwardSshTunnelConnectivity forwardSshConnectivity) {
    this.forwardSshConnectivity = forwardSshConnectivity;
    return this;
  }

  /**
   * Required. The IP or hostname of the source Oracle database.
   * @return value or {@code null} for none
   */
  public java.lang.String getHost() {
    return host;
  }

  /**
   * Required. The IP or hostname of the source Oracle database.
   * @param host host or {@code null} for none
   */
  public OracleConnectionProfile setHost(java.lang.String host) {
    this.host = host;
    return this;
  }

  /**
   * Required. Input only. The password for the user that Database Migration Service will be using
   * to connect to the database. This field is not returned on request, and the value is encrypted
   * when stored in Database Migration Service.
   * @return value or {@code null} for none
   */
  public java.lang.String getPassword() {
    return password;
  }

  /**
   * Required. Input only. The password for the user that Database Migration Service will be using
   * to connect to the database. This field is not returned on request, and the value is encrypted
   * when stored in Database Migration Service.
   * @param password password or {@code null} for none
   */
  public OracleConnectionProfile setPassword(java.lang.String password) {
    this.password = password;
    return this;
  }

  /**
   * Output only. Indicates whether a new password is included in the request.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getPasswordSet() {
    return passwordSet;
  }

  /**
   * Output only. Indicates whether a new password is included in the request.
   * @param passwordSet passwordSet or {@code null} for none
   */
  public OracleConnectionProfile setPasswordSet(java.lang.Boolean passwordSet) {
    this.passwordSet = passwordSet;
    return this;
  }

  /**
   * Required. The network port of the source Oracle database.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getPort() {
    return port;
  }

  /**
   * Required. The network port of the source Oracle database.
   * @param port port or {@code null} for none
   */
  public OracleConnectionProfile setPort(java.lang.Integer port) {
    this.port = port;
    return this;
  }

  /**
   * Private connectivity.
   * @return value or {@code null} for none
   */
  public PrivateConnectivity getPrivateConnectivity() {
    return privateConnectivity;
  }

  /**
   * Private connectivity.
   * @param privateConnectivity privateConnectivity or {@code null} for none
   */
  public OracleConnectionProfile setPrivateConnectivity(PrivateConnectivity privateConnectivity) {
    this.privateConnectivity = privateConnectivity;
    return this;
  }

  /**
   * SSL configuration for the connection to the source Oracle database. * Only `SERVER_ONLY`
   * configuration is supported for Oracle SSL. * SSL is supported for Oracle versions 12 and above.
   * @return value or {@code null} for none
   */
  public SslConfig getSsl() {
    return ssl;
  }

  /**
   * SSL configuration for the connection to the source Oracle database. * Only `SERVER_ONLY`
   * configuration is supported for Oracle SSL. * SSL is supported for Oracle versions 12 and above.
   * @param ssl ssl or {@code null} for none
   */
  public OracleConnectionProfile setSsl(SslConfig ssl) {
    this.ssl = ssl;
    return this;
  }

  /**
   * Static Service IP connectivity.
   * @return value or {@code null} for none
   */
  public StaticServiceIpConnectivity getStaticServiceIpConnectivity() {
    return staticServiceIpConnectivity;
  }

  /**
   * Static Service IP connectivity.
   * @param staticServiceIpConnectivity staticServiceIpConnectivity or {@code null} for none
   */
  public OracleConnectionProfile setStaticServiceIpConnectivity(StaticServiceIpConnectivity staticServiceIpConnectivity) {
    this.staticServiceIpConnectivity = staticServiceIpConnectivity;
    return this;
  }

  /**
   * Required. The username that Database Migration Service will use to connect to the database. The
   * value is encrypted when stored in Database Migration Service.
   * @return value or {@code null} for none
   */
  public java.lang.String getUsername() {
    return username;
  }

  /**
   * Required. The username that Database Migration Service will use to connect to the database. The
   * value is encrypted when stored in Database Migration Service.
   * @param username username or {@code null} for none
   */
  public OracleConnectionProfile setUsername(java.lang.String username) {
    this.username = username;
    return this;
  }

  @Override
  public OracleConnectionProfile set(String fieldName, Object value) {
    return (OracleConnectionProfile) super.set(fieldName, value);
  }

  @Override
  public OracleConnectionProfile clone() {
    return (OracleConnectionProfile) super.clone();
  }

}
