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

software.amazon.awssdk.services.databasemigration.model.Endpoint Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Database Migration Service module holds the client classes that are used for communicating with AWS Database Migration Service.

There is a newer version: 2.29.15
Show newest version
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file 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.
 */

package software.amazon.awssdk.services.databasemigration.model;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

* Describes an endpoint of a database instance in response to operations such as the following: *

*
    *
  • *

    * CreateEndpoint *

    *
  • *
  • *

    * DescribeEndpoint *

    *
  • *
  • *

    * DescribeEndpointTypes *

    *
  • *
  • *

    * ModifyEndpoint *

    *
  • *
*/ @Generated("software.amazon.awssdk:codegen") public final class Endpoint implements SdkPojo, Serializable, ToCopyableBuilder { private static final SdkField ENDPOINT_IDENTIFIER_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("EndpointIdentifier").getter(getter(Endpoint::endpointIdentifier)) .setter(setter(Builder::endpointIdentifier)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EndpointIdentifier").build()) .build(); private static final SdkField ENDPOINT_TYPE_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("EndpointType").getter(getter(Endpoint::endpointTypeAsString)).setter(setter(Builder::endpointType)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EndpointType").build()).build(); private static final SdkField ENGINE_NAME_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("EngineName").getter(getter(Endpoint::engineName)).setter(setter(Builder::engineName)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EngineName").build()).build(); private static final SdkField ENGINE_DISPLAY_NAME_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("EngineDisplayName").getter(getter(Endpoint::engineDisplayName)) .setter(setter(Builder::engineDisplayName)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EngineDisplayName").build()).build(); private static final SdkField USERNAME_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("Username").getter(getter(Endpoint::username)).setter(setter(Builder::username)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Username").build()).build(); private static final SdkField SERVER_NAME_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("ServerName").getter(getter(Endpoint::serverName)).setter(setter(Builder::serverName)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ServerName").build()).build(); private static final SdkField PORT_FIELD = SdkField. builder(MarshallingType.INTEGER).memberName("Port") .getter(getter(Endpoint::port)).setter(setter(Builder::port)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Port").build()).build(); private static final SdkField DATABASE_NAME_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("DatabaseName").getter(getter(Endpoint::databaseName)).setter(setter(Builder::databaseName)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DatabaseName").build()).build(); private static final SdkField EXTRA_CONNECTION_ATTRIBUTES_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("ExtraConnectionAttributes").getter(getter(Endpoint::extraConnectionAttributes)) .setter(setter(Builder::extraConnectionAttributes)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ExtraConnectionAttributes").build()) .build(); private static final SdkField STATUS_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Status") .getter(getter(Endpoint::status)).setter(setter(Builder::status)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Status").build()).build(); private static final SdkField KMS_KEY_ID_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("KmsKeyId").getter(getter(Endpoint::kmsKeyId)).setter(setter(Builder::kmsKeyId)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KmsKeyId").build()).build(); private static final SdkField ENDPOINT_ARN_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("EndpointArn").getter(getter(Endpoint::endpointArn)).setter(setter(Builder::endpointArn)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EndpointArn").build()).build(); private static final SdkField CERTIFICATE_ARN_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("CertificateArn").getter(getter(Endpoint::certificateArn)).setter(setter(Builder::certificateArn)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CertificateArn").build()).build(); private static final SdkField SSL_MODE_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("SslMode").getter(getter(Endpoint::sslModeAsString)).setter(setter(Builder::sslMode)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SslMode").build()).build(); private static final SdkField SERVICE_ACCESS_ROLE_ARN_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("ServiceAccessRoleArn").getter(getter(Endpoint::serviceAccessRoleArn)) .setter(setter(Builder::serviceAccessRoleArn)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ServiceAccessRoleArn").build()) .build(); private static final SdkField EXTERNAL_TABLE_DEFINITION_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("ExternalTableDefinition").getter(getter(Endpoint::externalTableDefinition)) .setter(setter(Builder::externalTableDefinition)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ExternalTableDefinition").build()) .build(); private static final SdkField EXTERNAL_ID_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("ExternalId").getter(getter(Endpoint::externalId)).setter(setter(Builder::externalId)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ExternalId").build()).build(); private static final SdkField DYNAMO_DB_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("DynamoDbSettings") .getter(getter(Endpoint::dynamoDbSettings)).setter(setter(Builder::dynamoDbSettings)) .constructor(DynamoDbSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DynamoDbSettings").build()).build(); private static final SdkField S3_SETTINGS_FIELD = SdkField. builder(MarshallingType.SDK_POJO) .memberName("S3Settings").getter(getter(Endpoint::s3Settings)).setter(setter(Builder::s3Settings)) .constructor(S3Settings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("S3Settings").build()).build(); private static final SdkField DMS_TRANSFER_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("DmsTransferSettings") .getter(getter(Endpoint::dmsTransferSettings)).setter(setter(Builder::dmsTransferSettings)) .constructor(DmsTransferSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DmsTransferSettings").build()) .build(); private static final SdkField MONGO_DB_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("MongoDbSettings") .getter(getter(Endpoint::mongoDbSettings)).setter(setter(Builder::mongoDbSettings)) .constructor(MongoDbSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MongoDbSettings").build()).build(); private static final SdkField KINESIS_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("KinesisSettings") .getter(getter(Endpoint::kinesisSettings)).setter(setter(Builder::kinesisSettings)) .constructor(KinesisSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KinesisSettings").build()).build(); private static final SdkField KAFKA_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("KafkaSettings") .getter(getter(Endpoint::kafkaSettings)).setter(setter(Builder::kafkaSettings)).constructor(KafkaSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KafkaSettings").build()).build(); private static final SdkField ELASTICSEARCH_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("ElasticsearchSettings") .getter(getter(Endpoint::elasticsearchSettings)).setter(setter(Builder::elasticsearchSettings)) .constructor(ElasticsearchSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ElasticsearchSettings").build()) .build(); private static final SdkField NEPTUNE_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("NeptuneSettings") .getter(getter(Endpoint::neptuneSettings)).setter(setter(Builder::neptuneSettings)) .constructor(NeptuneSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NeptuneSettings").build()).build(); private static final SdkField REDSHIFT_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("RedshiftSettings") .getter(getter(Endpoint::redshiftSettings)).setter(setter(Builder::redshiftSettings)) .constructor(RedshiftSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("RedshiftSettings").build()).build(); private static final SdkField POSTGRE_SQL_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("PostgreSQLSettings") .getter(getter(Endpoint::postgreSQLSettings)).setter(setter(Builder::postgreSQLSettings)) .constructor(PostgreSQLSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PostgreSQLSettings").build()) .build(); private static final SdkField MY_SQL_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("MySQLSettings") .getter(getter(Endpoint::mySQLSettings)).setter(setter(Builder::mySQLSettings)).constructor(MySQLSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MySQLSettings").build()).build(); private static final SdkField ORACLE_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("OracleSettings") .getter(getter(Endpoint::oracleSettings)).setter(setter(Builder::oracleSettings)) .constructor(OracleSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("OracleSettings").build()).build(); private static final SdkField SYBASE_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("SybaseSettings") .getter(getter(Endpoint::sybaseSettings)).setter(setter(Builder::sybaseSettings)) .constructor(SybaseSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SybaseSettings").build()).build(); private static final SdkField MICROSOFT_SQL_SERVER_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("MicrosoftSQLServerSettings") .getter(getter(Endpoint::microsoftSQLServerSettings)) .setter(setter(Builder::microsoftSQLServerSettings)) .constructor(MicrosoftSQLServerSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MicrosoftSQLServerSettings").build()) .build(); private static final SdkField IBM_DB2_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("IBMDb2Settings") .getter(getter(Endpoint::ibmDb2Settings)).setter(setter(Builder::ibmDb2Settings)) .constructor(IBMDb2Settings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("IBMDb2Settings").build()).build(); private static final SdkField DOC_DB_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("DocDbSettings") .getter(getter(Endpoint::docDbSettings)).setter(setter(Builder::docDbSettings)).constructor(DocDbSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DocDbSettings").build()).build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ENDPOINT_IDENTIFIER_FIELD, ENDPOINT_TYPE_FIELD, ENGINE_NAME_FIELD, ENGINE_DISPLAY_NAME_FIELD, USERNAME_FIELD, SERVER_NAME_FIELD, PORT_FIELD, DATABASE_NAME_FIELD, EXTRA_CONNECTION_ATTRIBUTES_FIELD, STATUS_FIELD, KMS_KEY_ID_FIELD, ENDPOINT_ARN_FIELD, CERTIFICATE_ARN_FIELD, SSL_MODE_FIELD, SERVICE_ACCESS_ROLE_ARN_FIELD, EXTERNAL_TABLE_DEFINITION_FIELD, EXTERNAL_ID_FIELD, DYNAMO_DB_SETTINGS_FIELD, S3_SETTINGS_FIELD, DMS_TRANSFER_SETTINGS_FIELD, MONGO_DB_SETTINGS_FIELD, KINESIS_SETTINGS_FIELD, KAFKA_SETTINGS_FIELD, ELASTICSEARCH_SETTINGS_FIELD, NEPTUNE_SETTINGS_FIELD, REDSHIFT_SETTINGS_FIELD, POSTGRE_SQL_SETTINGS_FIELD, MY_SQL_SETTINGS_FIELD, ORACLE_SETTINGS_FIELD, SYBASE_SETTINGS_FIELD, MICROSOFT_SQL_SERVER_SETTINGS_FIELD, IBM_DB2_SETTINGS_FIELD, DOC_DB_SETTINGS_FIELD)); private static final long serialVersionUID = 1L; private final String endpointIdentifier; private final String endpointType; private final String engineName; private final String engineDisplayName; private final String username; private final String serverName; private final Integer port; private final String databaseName; private final String extraConnectionAttributes; private final String status; private final String kmsKeyId; private final String endpointArn; private final String certificateArn; private final String sslMode; private final String serviceAccessRoleArn; private final String externalTableDefinition; private final String externalId; private final DynamoDbSettings dynamoDbSettings; private final S3Settings s3Settings; private final DmsTransferSettings dmsTransferSettings; private final MongoDbSettings mongoDbSettings; private final KinesisSettings kinesisSettings; private final KafkaSettings kafkaSettings; private final ElasticsearchSettings elasticsearchSettings; private final NeptuneSettings neptuneSettings; private final RedshiftSettings redshiftSettings; private final PostgreSQLSettings postgreSQLSettings; private final MySQLSettings mySQLSettings; private final OracleSettings oracleSettings; private final SybaseSettings sybaseSettings; private final MicrosoftSQLServerSettings microsoftSQLServerSettings; private final IBMDb2Settings ibmDb2Settings; private final DocDbSettings docDbSettings; private Endpoint(BuilderImpl builder) { this.endpointIdentifier = builder.endpointIdentifier; this.endpointType = builder.endpointType; this.engineName = builder.engineName; this.engineDisplayName = builder.engineDisplayName; this.username = builder.username; this.serverName = builder.serverName; this.port = builder.port; this.databaseName = builder.databaseName; this.extraConnectionAttributes = builder.extraConnectionAttributes; this.status = builder.status; this.kmsKeyId = builder.kmsKeyId; this.endpointArn = builder.endpointArn; this.certificateArn = builder.certificateArn; this.sslMode = builder.sslMode; this.serviceAccessRoleArn = builder.serviceAccessRoleArn; this.externalTableDefinition = builder.externalTableDefinition; this.externalId = builder.externalId; this.dynamoDbSettings = builder.dynamoDbSettings; this.s3Settings = builder.s3Settings; this.dmsTransferSettings = builder.dmsTransferSettings; this.mongoDbSettings = builder.mongoDbSettings; this.kinesisSettings = builder.kinesisSettings; this.kafkaSettings = builder.kafkaSettings; this.elasticsearchSettings = builder.elasticsearchSettings; this.neptuneSettings = builder.neptuneSettings; this.redshiftSettings = builder.redshiftSettings; this.postgreSQLSettings = builder.postgreSQLSettings; this.mySQLSettings = builder.mySQLSettings; this.oracleSettings = builder.oracleSettings; this.sybaseSettings = builder.sybaseSettings; this.microsoftSQLServerSettings = builder.microsoftSQLServerSettings; this.ibmDb2Settings = builder.ibmDb2Settings; this.docDbSettings = builder.docDbSettings; } /** *

* The database endpoint identifier. Identifiers must begin with a letter and must contain only ASCII letters, * digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens. *

* * @return The database endpoint identifier. Identifiers must begin with a letter and must contain only ASCII * letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens. */ public final String endpointIdentifier() { return endpointIdentifier; } /** *

* The type of endpoint. Valid values are source and target. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #endpointType} will * return {@link ReplicationEndpointTypeValue#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is * available from {@link #endpointTypeAsString}. *

* * @return The type of endpoint. Valid values are source and target. * @see ReplicationEndpointTypeValue */ public final ReplicationEndpointTypeValue endpointType() { return ReplicationEndpointTypeValue.fromValue(endpointType); } /** *

* The type of endpoint. Valid values are source and target. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #endpointType} will * return {@link ReplicationEndpointTypeValue#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is * available from {@link #endpointTypeAsString}. *

* * @return The type of endpoint. Valid values are source and target. * @see ReplicationEndpointTypeValue */ public final String endpointTypeAsString() { return endpointType; } /** *

* The database engine name. Valid values, depending on the EndpointType, include "mysql", * "oracle", "postgres", "mariadb", "aurora", * "aurora-postgresql", "redshift", "s3", "db2", * "azuredb", "sybase", "dynamodb", "mongodb", * "kinesis", "kafka", "elasticsearch", "documentdb", * "sqlserver", and "neptune". *

* * @return The database engine name. Valid values, depending on the EndpointType, include "mysql", * "oracle", "postgres", "mariadb", "aurora", * "aurora-postgresql", "redshift", "s3", "db2", * "azuredb", "sybase", "dynamodb", "mongodb", * "kinesis", "kafka", "elasticsearch", "documentdb", * "sqlserver", and "neptune". */ public final String engineName() { return engineName; } /** *

* The expanded name for the engine name. For example, if the EngineName parameter is "aurora," this * value would be "Amazon Aurora MySQL." *

* * @return The expanded name for the engine name. For example, if the EngineName parameter is "aurora," * this value would be "Amazon Aurora MySQL." */ public final String engineDisplayName() { return engineDisplayName; } /** *

* The user name used to connect to the endpoint. *

* * @return The user name used to connect to the endpoint. */ public final String username() { return username; } /** *

* The name of the server at the endpoint. *

* * @return The name of the server at the endpoint. */ public final String serverName() { return serverName; } /** *

* The port value used to access the endpoint. *

* * @return The port value used to access the endpoint. */ public final Integer port() { return port; } /** *

* The name of the database at the endpoint. *

* * @return The name of the database at the endpoint. */ public final String databaseName() { return databaseName; } /** *

* Additional connection attributes used to connect to the endpoint. *

* * @return Additional connection attributes used to connect to the endpoint. */ public final String extraConnectionAttributes() { return extraConnectionAttributes; } /** *

* The status of the endpoint. *

* * @return The status of the endpoint. */ public final String status() { return status; } /** *

* An AWS KMS key identifier that is used to encrypt the connection parameters for the endpoint. *

*

* If you don't specify a value for the KmsKeyId parameter, then AWS DMS uses your default encryption * key. *

*

* AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default * encryption key for each AWS Region. *

* * @return An AWS KMS key identifier that is used to encrypt the connection parameters for the endpoint.

*

* If you don't specify a value for the KmsKeyId parameter, then AWS DMS uses your default * encryption key. *

*

* AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default * encryption key for each AWS Region. */ public final String kmsKeyId() { return kmsKeyId; } /** *

* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. *

* * @return The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. */ public final String endpointArn() { return endpointArn; } /** *

* The Amazon Resource Name (ARN) used for SSL connection to the endpoint. *

* * @return The Amazon Resource Name (ARN) used for SSL connection to the endpoint. */ public final String certificateArn() { return certificateArn; } /** *

* The SSL mode used to connect to the endpoint. The default value is none. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #sslMode} will * return {@link DmsSslModeValue#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #sslModeAsString}. *

* * @return The SSL mode used to connect to the endpoint. The default value is none. * @see DmsSslModeValue */ public final DmsSslModeValue sslMode() { return DmsSslModeValue.fromValue(sslMode); } /** *

* The SSL mode used to connect to the endpoint. The default value is none. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #sslMode} will * return {@link DmsSslModeValue#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #sslModeAsString}. *

* * @return The SSL mode used to connect to the endpoint. The default value is none. * @see DmsSslModeValue */ public final String sslModeAsString() { return sslMode; } /** *

* The Amazon Resource Name (ARN) used by the service access IAM role. *

* * @return The Amazon Resource Name (ARN) used by the service access IAM role. */ public final String serviceAccessRoleArn() { return serviceAccessRoleArn; } /** *

* The external table definition. *

* * @return The external table definition. */ public final String externalTableDefinition() { return externalTableDefinition; } /** *

* Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a subsequent * call to CreateEndpoint to create the endpoint with a cross-account. *

* * @return Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a * subsequent call to CreateEndpoint to create the endpoint with a cross-account. */ public final String externalId() { return externalId; } /** *

* The settings for the DynamoDB target endpoint. For more information, see the DynamoDBSettings * structure. *

* * @return The settings for the DynamoDB target endpoint. For more information, see the * DynamoDBSettings structure. */ public final DynamoDbSettings dynamoDbSettings() { return dynamoDbSettings; } /** *

* The settings for the S3 target endpoint. For more information, see the S3Settings structure. *

* * @return The settings for the S3 target endpoint. For more information, see the S3Settings structure. */ public final S3Settings s3Settings() { return s3Settings; } /** *

* The settings in JSON format for the DMS transfer type of source endpoint. *

*

* Possible settings include the following: *

*
    *
  • *

    * ServiceAccessRoleArn - The IAM role that has permission to access the Amazon S3 bucket. *

    *
  • *
  • *

    * BucketName - The name of the S3 bucket to use. *

    *
  • *
  • *

    * CompressionType - An optional parameter to use GZIP to compress the target files. To use GZIP, set * this value to NONE (the default). To keep the files uncompressed, don't use this value. *

    *
  • *
*

* Shorthand syntax for these settings is as follows: * ServiceAccessRoleArn=string,BucketName=string,CompressionType=string *

*

* JSON syntax for these settings is as follows: * { "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": "none"|"gzip" } *

* * @return The settings in JSON format for the DMS transfer type of source endpoint.

*

* Possible settings include the following: *

*
    *
  • *

    * ServiceAccessRoleArn - The IAM role that has permission to access the Amazon S3 bucket. *

    *
  • *
  • *

    * BucketName - The name of the S3 bucket to use. *

    *
  • *
  • *

    * CompressionType - An optional parameter to use GZIP to compress the target files. To use * GZIP, set this value to NONE (the default). To keep the files uncompressed, don't use this * value. *

    *
  • *
*

* Shorthand syntax for these settings is as follows: * ServiceAccessRoleArn=string,BucketName=string,CompressionType=string *

*

* JSON syntax for these settings is as follows: * { "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": "none"|"gzip" } */ public final DmsTransferSettings dmsTransferSettings() { return dmsTransferSettings; } /** *

* The settings for the MongoDB source endpoint. For more information, see the MongoDbSettings * structure. *

* * @return The settings for the MongoDB source endpoint. For more information, see the MongoDbSettings * structure. */ public final MongoDbSettings mongoDbSettings() { return mongoDbSettings; } /** *

* The settings for the Amazon Kinesis target endpoint. For more information, see the KinesisSettings * structure. *

* * @return The settings for the Amazon Kinesis target endpoint. For more information, see the * KinesisSettings structure. */ public final KinesisSettings kinesisSettings() { return kinesisSettings; } /** *

* The settings for the Apache Kafka target endpoint. For more information, see the KafkaSettings * structure. *

* * @return The settings for the Apache Kafka target endpoint. For more information, see the * KafkaSettings structure. */ public final KafkaSettings kafkaSettings() { return kafkaSettings; } /** *

* The settings for the Elasticsearch source endpoint. For more information, see the * ElasticsearchSettings structure. *

* * @return The settings for the Elasticsearch source endpoint. For more information, see the * ElasticsearchSettings structure. */ public final ElasticsearchSettings elasticsearchSettings() { return elasticsearchSettings; } /** *

* The settings for the Amazon Neptune target endpoint. For more information, see the NeptuneSettings * structure. *

* * @return The settings for the Amazon Neptune target endpoint. For more information, see the * NeptuneSettings structure. */ public final NeptuneSettings neptuneSettings() { return neptuneSettings; } /** *

* Settings for the Amazon Redshift endpoint. *

* * @return Settings for the Amazon Redshift endpoint. */ public final RedshiftSettings redshiftSettings() { return redshiftSettings; } /** *

* The settings for the PostgreSQL source and target endpoint. For more information, see the * PostgreSQLSettings structure. *

* * @return The settings for the PostgreSQL source and target endpoint. For more information, see the * PostgreSQLSettings structure. */ public final PostgreSQLSettings postgreSQLSettings() { return postgreSQLSettings; } /** *

* The settings for the MySQL source and target endpoint. For more information, see the MySQLSettings * structure. *

* * @return The settings for the MySQL source and target endpoint. For more information, see the * MySQLSettings structure. */ public final MySQLSettings mySQLSettings() { return mySQLSettings; } /** *

* The settings for the Oracle source and target endpoint. For more information, see the OracleSettings * structure. *

* * @return The settings for the Oracle source and target endpoint. For more information, see the * OracleSettings structure. */ public final OracleSettings oracleSettings() { return oracleSettings; } /** *

* The settings for the SAP ASE source and target endpoint. For more information, see the * SybaseSettings structure. *

* * @return The settings for the SAP ASE source and target endpoint. For more information, see the * SybaseSettings structure. */ public final SybaseSettings sybaseSettings() { return sybaseSettings; } /** *

* The settings for the Microsoft SQL Server source and target endpoint. For more information, see the * MicrosoftSQLServerSettings structure. *

* * @return The settings for the Microsoft SQL Server source and target endpoint. For more information, see the * MicrosoftSQLServerSettings structure. */ public final MicrosoftSQLServerSettings microsoftSQLServerSettings() { return microsoftSQLServerSettings; } /** *

* The settings for the IBM Db2 LUW source endpoint. For more information, see the IBMDb2Settings * structure. *

* * @return The settings for the IBM Db2 LUW source endpoint. For more information, see the * IBMDb2Settings structure. */ public final IBMDb2Settings ibmDb2Settings() { return ibmDb2Settings; } /** * Returns the value of the DocDbSettings property for this object. * * @return The value of the DocDbSettings property for this object. */ public final DocDbSettings docDbSettings() { return docDbSettings; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public final int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(endpointIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(endpointTypeAsString()); hashCode = 31 * hashCode + Objects.hashCode(engineName()); hashCode = 31 * hashCode + Objects.hashCode(engineDisplayName()); hashCode = 31 * hashCode + Objects.hashCode(username()); hashCode = 31 * hashCode + Objects.hashCode(serverName()); hashCode = 31 * hashCode + Objects.hashCode(port()); hashCode = 31 * hashCode + Objects.hashCode(databaseName()); hashCode = 31 * hashCode + Objects.hashCode(extraConnectionAttributes()); hashCode = 31 * hashCode + Objects.hashCode(status()); hashCode = 31 * hashCode + Objects.hashCode(kmsKeyId()); hashCode = 31 * hashCode + Objects.hashCode(endpointArn()); hashCode = 31 * hashCode + Objects.hashCode(certificateArn()); hashCode = 31 * hashCode + Objects.hashCode(sslModeAsString()); hashCode = 31 * hashCode + Objects.hashCode(serviceAccessRoleArn()); hashCode = 31 * hashCode + Objects.hashCode(externalTableDefinition()); hashCode = 31 * hashCode + Objects.hashCode(externalId()); hashCode = 31 * hashCode + Objects.hashCode(dynamoDbSettings()); hashCode = 31 * hashCode + Objects.hashCode(s3Settings()); hashCode = 31 * hashCode + Objects.hashCode(dmsTransferSettings()); hashCode = 31 * hashCode + Objects.hashCode(mongoDbSettings()); hashCode = 31 * hashCode + Objects.hashCode(kinesisSettings()); hashCode = 31 * hashCode + Objects.hashCode(kafkaSettings()); hashCode = 31 * hashCode + Objects.hashCode(elasticsearchSettings()); hashCode = 31 * hashCode + Objects.hashCode(neptuneSettings()); hashCode = 31 * hashCode + Objects.hashCode(redshiftSettings()); hashCode = 31 * hashCode + Objects.hashCode(postgreSQLSettings()); hashCode = 31 * hashCode + Objects.hashCode(mySQLSettings()); hashCode = 31 * hashCode + Objects.hashCode(oracleSettings()); hashCode = 31 * hashCode + Objects.hashCode(sybaseSettings()); hashCode = 31 * hashCode + Objects.hashCode(microsoftSQLServerSettings()); hashCode = 31 * hashCode + Objects.hashCode(ibmDb2Settings()); hashCode = 31 * hashCode + Objects.hashCode(docDbSettings()); return hashCode; } @Override public final boolean equals(Object obj) { return equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof Endpoint)) { return false; } Endpoint other = (Endpoint) obj; return Objects.equals(endpointIdentifier(), other.endpointIdentifier()) && Objects.equals(endpointTypeAsString(), other.endpointTypeAsString()) && Objects.equals(engineName(), other.engineName()) && Objects.equals(engineDisplayName(), other.engineDisplayName()) && Objects.equals(username(), other.username()) && Objects.equals(serverName(), other.serverName()) && Objects.equals(port(), other.port()) && Objects.equals(databaseName(), other.databaseName()) && Objects.equals(extraConnectionAttributes(), other.extraConnectionAttributes()) && Objects.equals(status(), other.status()) && Objects.equals(kmsKeyId(), other.kmsKeyId()) && Objects.equals(endpointArn(), other.endpointArn()) && Objects.equals(certificateArn(), other.certificateArn()) && Objects.equals(sslModeAsString(), other.sslModeAsString()) && Objects.equals(serviceAccessRoleArn(), other.serviceAccessRoleArn()) && Objects.equals(externalTableDefinition(), other.externalTableDefinition()) && Objects.equals(externalId(), other.externalId()) && Objects.equals(dynamoDbSettings(), other.dynamoDbSettings()) && Objects.equals(s3Settings(), other.s3Settings()) && Objects.equals(dmsTransferSettings(), other.dmsTransferSettings()) && Objects.equals(mongoDbSettings(), other.mongoDbSettings()) && Objects.equals(kinesisSettings(), other.kinesisSettings()) && Objects.equals(kafkaSettings(), other.kafkaSettings()) && Objects.equals(elasticsearchSettings(), other.elasticsearchSettings()) && Objects.equals(neptuneSettings(), other.neptuneSettings()) && Objects.equals(redshiftSettings(), other.redshiftSettings()) && Objects.equals(postgreSQLSettings(), other.postgreSQLSettings()) && Objects.equals(mySQLSettings(), other.mySQLSettings()) && Objects.equals(oracleSettings(), other.oracleSettings()) && Objects.equals(sybaseSettings(), other.sybaseSettings()) && Objects.equals(microsoftSQLServerSettings(), other.microsoftSQLServerSettings()) && Objects.equals(ibmDb2Settings(), other.ibmDb2Settings()) && Objects.equals(docDbSettings(), other.docDbSettings()); } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public final String toString() { return ToString.builder("Endpoint").add("EndpointIdentifier", endpointIdentifier()) .add("EndpointType", endpointTypeAsString()).add("EngineName", engineName()) .add("EngineDisplayName", engineDisplayName()).add("Username", username()).add("ServerName", serverName()) .add("Port", port()).add("DatabaseName", databaseName()) .add("ExtraConnectionAttributes", extraConnectionAttributes()).add("Status", status()) .add("KmsKeyId", kmsKeyId()).add("EndpointArn", endpointArn()).add("CertificateArn", certificateArn()) .add("SslMode", sslModeAsString()).add("ServiceAccessRoleArn", serviceAccessRoleArn()) .add("ExternalTableDefinition", externalTableDefinition()).add("ExternalId", externalId()) .add("DynamoDbSettings", dynamoDbSettings()).add("S3Settings", s3Settings()) .add("DmsTransferSettings", dmsTransferSettings()).add("MongoDbSettings", mongoDbSettings()) .add("KinesisSettings", kinesisSettings()).add("KafkaSettings", kafkaSettings()) .add("ElasticsearchSettings", elasticsearchSettings()).add("NeptuneSettings", neptuneSettings()) .add("RedshiftSettings", redshiftSettings()).add("PostgreSQLSettings", postgreSQLSettings()) .add("MySQLSettings", mySQLSettings()).add("OracleSettings", oracleSettings()) .add("SybaseSettings", sybaseSettings()).add("MicrosoftSQLServerSettings", microsoftSQLServerSettings()) .add("IBMDb2Settings", ibmDb2Settings()).add("DocDbSettings", docDbSettings()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "EndpointIdentifier": return Optional.ofNullable(clazz.cast(endpointIdentifier())); case "EndpointType": return Optional.ofNullable(clazz.cast(endpointTypeAsString())); case "EngineName": return Optional.ofNullable(clazz.cast(engineName())); case "EngineDisplayName": return Optional.ofNullable(clazz.cast(engineDisplayName())); case "Username": return Optional.ofNullable(clazz.cast(username())); case "ServerName": return Optional.ofNullable(clazz.cast(serverName())); case "Port": return Optional.ofNullable(clazz.cast(port())); case "DatabaseName": return Optional.ofNullable(clazz.cast(databaseName())); case "ExtraConnectionAttributes": return Optional.ofNullable(clazz.cast(extraConnectionAttributes())); case "Status": return Optional.ofNullable(clazz.cast(status())); case "KmsKeyId": return Optional.ofNullable(clazz.cast(kmsKeyId())); case "EndpointArn": return Optional.ofNullable(clazz.cast(endpointArn())); case "CertificateArn": return Optional.ofNullable(clazz.cast(certificateArn())); case "SslMode": return Optional.ofNullable(clazz.cast(sslModeAsString())); case "ServiceAccessRoleArn": return Optional.ofNullable(clazz.cast(serviceAccessRoleArn())); case "ExternalTableDefinition": return Optional.ofNullable(clazz.cast(externalTableDefinition())); case "ExternalId": return Optional.ofNullable(clazz.cast(externalId())); case "DynamoDbSettings": return Optional.ofNullable(clazz.cast(dynamoDbSettings())); case "S3Settings": return Optional.ofNullable(clazz.cast(s3Settings())); case "DmsTransferSettings": return Optional.ofNullable(clazz.cast(dmsTransferSettings())); case "MongoDbSettings": return Optional.ofNullable(clazz.cast(mongoDbSettings())); case "KinesisSettings": return Optional.ofNullable(clazz.cast(kinesisSettings())); case "KafkaSettings": return Optional.ofNullable(clazz.cast(kafkaSettings())); case "ElasticsearchSettings": return Optional.ofNullable(clazz.cast(elasticsearchSettings())); case "NeptuneSettings": return Optional.ofNullable(clazz.cast(neptuneSettings())); case "RedshiftSettings": return Optional.ofNullable(clazz.cast(redshiftSettings())); case "PostgreSQLSettings": return Optional.ofNullable(clazz.cast(postgreSQLSettings())); case "MySQLSettings": return Optional.ofNullable(clazz.cast(mySQLSettings())); case "OracleSettings": return Optional.ofNullable(clazz.cast(oracleSettings())); case "SybaseSettings": return Optional.ofNullable(clazz.cast(sybaseSettings())); case "MicrosoftSQLServerSettings": return Optional.ofNullable(clazz.cast(microsoftSQLServerSettings())); case "IBMDb2Settings": return Optional.ofNullable(clazz.cast(ibmDb2Settings())); case "DocDbSettings": return Optional.ofNullable(clazz.cast(docDbSettings())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((Endpoint) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends SdkPojo, CopyableBuilder { /** *

* The database endpoint identifier. Identifiers must begin with a letter and must contain only ASCII letters, * digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens. *

* * @param endpointIdentifier * The database endpoint identifier. Identifiers must begin with a letter and must contain only ASCII * letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens. * @return Returns a reference to this object so that method calls can be chained together. */ Builder endpointIdentifier(String endpointIdentifier); /** *

* The type of endpoint. Valid values are source and target. *

* * @param endpointType * The type of endpoint. Valid values are source and target. * @see ReplicationEndpointTypeValue * @return Returns a reference to this object so that method calls can be chained together. * @see ReplicationEndpointTypeValue */ Builder endpointType(String endpointType); /** *

* The type of endpoint. Valid values are source and target. *

* * @param endpointType * The type of endpoint. Valid values are source and target. * @see ReplicationEndpointTypeValue * @return Returns a reference to this object so that method calls can be chained together. * @see ReplicationEndpointTypeValue */ Builder endpointType(ReplicationEndpointTypeValue endpointType); /** *

* The database engine name. Valid values, depending on the EndpointType, include "mysql", * "oracle", "postgres", "mariadb", "aurora", * "aurora-postgresql", "redshift", "s3", "db2", * "azuredb", "sybase", "dynamodb", "mongodb", * "kinesis", "kafka", "elasticsearch", "documentdb", * "sqlserver", and "neptune". *

* * @param engineName * The database engine name. Valid values, depending on the EndpointType, include "mysql", * "oracle", "postgres", "mariadb", "aurora", * "aurora-postgresql", "redshift", "s3", "db2", * "azuredb", "sybase", "dynamodb", "mongodb", * "kinesis", "kafka", "elasticsearch", "documentdb", * "sqlserver", and "neptune". * @return Returns a reference to this object so that method calls can be chained together. */ Builder engineName(String engineName); /** *

* The expanded name for the engine name. For example, if the EngineName parameter is "aurora," * this value would be "Amazon Aurora MySQL." *

* * @param engineDisplayName * The expanded name for the engine name. For example, if the EngineName parameter is * "aurora," this value would be "Amazon Aurora MySQL." * @return Returns a reference to this object so that method calls can be chained together. */ Builder engineDisplayName(String engineDisplayName); /** *

* The user name used to connect to the endpoint. *

* * @param username * The user name used to connect to the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ Builder username(String username); /** *

* The name of the server at the endpoint. *

* * @param serverName * The name of the server at the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ Builder serverName(String serverName); /** *

* The port value used to access the endpoint. *

* * @param port * The port value used to access the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ Builder port(Integer port); /** *

* The name of the database at the endpoint. *

* * @param databaseName * The name of the database at the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ Builder databaseName(String databaseName); /** *

* Additional connection attributes used to connect to the endpoint. *

* * @param extraConnectionAttributes * Additional connection attributes used to connect to the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ Builder extraConnectionAttributes(String extraConnectionAttributes); /** *

* The status of the endpoint. *

* * @param status * The status of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ Builder status(String status); /** *

* An AWS KMS key identifier that is used to encrypt the connection parameters for the endpoint. *

*

* If you don't specify a value for the KmsKeyId parameter, then AWS DMS uses your default * encryption key. *

*

* AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default * encryption key for each AWS Region. *

* * @param kmsKeyId * An AWS KMS key identifier that is used to encrypt the connection parameters for the endpoint.

*

* If you don't specify a value for the KmsKeyId parameter, then AWS DMS uses your default * encryption key. *

*

* AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different * default encryption key for each AWS Region. * @return Returns a reference to this object so that method calls can be chained together. */ Builder kmsKeyId(String kmsKeyId); /** *

* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. *

* * @param endpointArn * The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ Builder endpointArn(String endpointArn); /** *

* The Amazon Resource Name (ARN) used for SSL connection to the endpoint. *

* * @param certificateArn * The Amazon Resource Name (ARN) used for SSL connection to the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ Builder certificateArn(String certificateArn); /** *

* The SSL mode used to connect to the endpoint. The default value is none. *

* * @param sslMode * The SSL mode used to connect to the endpoint. The default value is none. * @see DmsSslModeValue * @return Returns a reference to this object so that method calls can be chained together. * @see DmsSslModeValue */ Builder sslMode(String sslMode); /** *

* The SSL mode used to connect to the endpoint. The default value is none. *

* * @param sslMode * The SSL mode used to connect to the endpoint. The default value is none. * @see DmsSslModeValue * @return Returns a reference to this object so that method calls can be chained together. * @see DmsSslModeValue */ Builder sslMode(DmsSslModeValue sslMode); /** *

* The Amazon Resource Name (ARN) used by the service access IAM role. *

* * @param serviceAccessRoleArn * The Amazon Resource Name (ARN) used by the service access IAM role. * @return Returns a reference to this object so that method calls can be chained together. */ Builder serviceAccessRoleArn(String serviceAccessRoleArn); /** *

* The external table definition. *

* * @param externalTableDefinition * The external table definition. * @return Returns a reference to this object so that method calls can be chained together. */ Builder externalTableDefinition(String externalTableDefinition); /** *

* Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a * subsequent call to CreateEndpoint to create the endpoint with a cross-account. *

* * @param externalId * Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a * subsequent call to CreateEndpoint to create the endpoint with a cross-account. * @return Returns a reference to this object so that method calls can be chained together. */ Builder externalId(String externalId); /** *

* The settings for the DynamoDB target endpoint. For more information, see the DynamoDBSettings * structure. *

* * @param dynamoDbSettings * The settings for the DynamoDB target endpoint. For more information, see the * DynamoDBSettings structure. * @return Returns a reference to this object so that method calls can be chained together. */ Builder dynamoDbSettings(DynamoDbSettings dynamoDbSettings); /** *

* The settings for the DynamoDB target endpoint. For more information, see the DynamoDBSettings * structure. *

* This is a convenience that creates an instance of the {@link DynamoDbSettings.Builder} avoiding the need to * create one manually via {@link DynamoDbSettings#builder()}. * * When the {@link Consumer} completes, {@link DynamoDbSettings.Builder#build()} is called immediately and its * result is passed to {@link #dynamoDbSettings(DynamoDbSettings)}. * * @param dynamoDbSettings * a consumer that will call methods on {@link DynamoDbSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #dynamoDbSettings(DynamoDbSettings) */ default Builder dynamoDbSettings(Consumer dynamoDbSettings) { return dynamoDbSettings(DynamoDbSettings.builder().applyMutation(dynamoDbSettings).build()); } /** *

* The settings for the S3 target endpoint. For more information, see the S3Settings structure. *

* * @param s3Settings * The settings for the S3 target endpoint. For more information, see the S3Settings * structure. * @return Returns a reference to this object so that method calls can be chained together. */ Builder s3Settings(S3Settings s3Settings); /** *

* The settings for the S3 target endpoint. For more information, see the S3Settings structure. *

* This is a convenience that creates an instance of the {@link S3Settings.Builder} avoiding the need to create * one manually via {@link S3Settings#builder()}. * * When the {@link Consumer} completes, {@link S3Settings.Builder#build()} is called immediately and its result * is passed to {@link #s3Settings(S3Settings)}. * * @param s3Settings * a consumer that will call methods on {@link S3Settings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #s3Settings(S3Settings) */ default Builder s3Settings(Consumer s3Settings) { return s3Settings(S3Settings.builder().applyMutation(s3Settings).build()); } /** *

* The settings in JSON format for the DMS transfer type of source endpoint. *

*

* Possible settings include the following: *

*
    *
  • *

    * ServiceAccessRoleArn - The IAM role that has permission to access the Amazon S3 bucket. *

    *
  • *
  • *

    * BucketName - The name of the S3 bucket to use. *

    *
  • *
  • *

    * CompressionType - An optional parameter to use GZIP to compress the target files. To use GZIP, * set this value to NONE (the default). To keep the files uncompressed, don't use this value. *

    *
  • *
*

* Shorthand syntax for these settings is as follows: * ServiceAccessRoleArn=string,BucketName=string,CompressionType=string *

*

* JSON syntax for these settings is as follows: * { "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": "none"|"gzip" } *

* * @param dmsTransferSettings * The settings in JSON format for the DMS transfer type of source endpoint.

*

* Possible settings include the following: *

*
    *
  • *

    * ServiceAccessRoleArn - The IAM role that has permission to access the Amazon S3 bucket. *

    *
  • *
  • *

    * BucketName - The name of the S3 bucket to use. *

    *
  • *
  • *

    * CompressionType - An optional parameter to use GZIP to compress the target files. To use * GZIP, set this value to NONE (the default). To keep the files uncompressed, don't use * this value. *

    *
  • *
*

* Shorthand syntax for these settings is as follows: * ServiceAccessRoleArn=string,BucketName=string,CompressionType=string *

*

* JSON syntax for these settings is as follows: * { "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": "none"|"gzip" } * @return Returns a reference to this object so that method calls can be chained together. */ Builder dmsTransferSettings(DmsTransferSettings dmsTransferSettings); /** *

* The settings in JSON format for the DMS transfer type of source endpoint. *

*

* Possible settings include the following: *

*
    *
  • *

    * ServiceAccessRoleArn - The IAM role that has permission to access the Amazon S3 bucket. *

    *
  • *
  • *

    * BucketName - The name of the S3 bucket to use. *

    *
  • *
  • *

    * CompressionType - An optional parameter to use GZIP to compress the target files. To use GZIP, * set this value to NONE (the default). To keep the files uncompressed, don't use this value. *

    *
  • *
*

* Shorthand syntax for these settings is as follows: * ServiceAccessRoleArn=string,BucketName=string,CompressionType=string *

*

* JSON syntax for these settings is as follows: * { "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": "none"|"gzip" } *

* This is a convenience that creates an instance of the {@link DmsTransferSettings.Builder} avoiding the need * to create one manually via {@link DmsTransferSettings#builder()}. * * When the {@link Consumer} completes, {@link DmsTransferSettings.Builder#build()} is called immediately and * its result is passed to {@link #dmsTransferSettings(DmsTransferSettings)}. * * @param dmsTransferSettings * a consumer that will call methods on {@link DmsTransferSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #dmsTransferSettings(DmsTransferSettings) */ default Builder dmsTransferSettings(Consumer dmsTransferSettings) { return dmsTransferSettings(DmsTransferSettings.builder().applyMutation(dmsTransferSettings).build()); } /** *

* The settings for the MongoDB source endpoint. For more information, see the MongoDbSettings * structure. *

* * @param mongoDbSettings * The settings for the MongoDB source endpoint. For more information, see the * MongoDbSettings structure. * @return Returns a reference to this object so that method calls can be chained together. */ Builder mongoDbSettings(MongoDbSettings mongoDbSettings); /** *

* The settings for the MongoDB source endpoint. For more information, see the MongoDbSettings * structure. *

* This is a convenience that creates an instance of the {@link MongoDbSettings.Builder} avoiding the need to * create one manually via {@link MongoDbSettings#builder()}. * * When the {@link Consumer} completes, {@link MongoDbSettings.Builder#build()} is called immediately and its * result is passed to {@link #mongoDbSettings(MongoDbSettings)}. * * @param mongoDbSettings * a consumer that will call methods on {@link MongoDbSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #mongoDbSettings(MongoDbSettings) */ default Builder mongoDbSettings(Consumer mongoDbSettings) { return mongoDbSettings(MongoDbSettings.builder().applyMutation(mongoDbSettings).build()); } /** *

* The settings for the Amazon Kinesis target endpoint. For more information, see the * KinesisSettings structure. *

* * @param kinesisSettings * The settings for the Amazon Kinesis target endpoint. For more information, see the * KinesisSettings structure. * @return Returns a reference to this object so that method calls can be chained together. */ Builder kinesisSettings(KinesisSettings kinesisSettings); /** *

* The settings for the Amazon Kinesis target endpoint. For more information, see the * KinesisSettings structure. *

* This is a convenience that creates an instance of the {@link KinesisSettings.Builder} avoiding the need to * create one manually via {@link KinesisSettings#builder()}. * * When the {@link Consumer} completes, {@link KinesisSettings.Builder#build()} is called immediately and its * result is passed to {@link #kinesisSettings(KinesisSettings)}. * * @param kinesisSettings * a consumer that will call methods on {@link KinesisSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #kinesisSettings(KinesisSettings) */ default Builder kinesisSettings(Consumer kinesisSettings) { return kinesisSettings(KinesisSettings.builder().applyMutation(kinesisSettings).build()); } /** *

* The settings for the Apache Kafka target endpoint. For more information, see the KafkaSettings * structure. *

* * @param kafkaSettings * The settings for the Apache Kafka target endpoint. For more information, see the * KafkaSettings structure. * @return Returns a reference to this object so that method calls can be chained together. */ Builder kafkaSettings(KafkaSettings kafkaSettings); /** *

* The settings for the Apache Kafka target endpoint. For more information, see the KafkaSettings * structure. *

* This is a convenience that creates an instance of the {@link KafkaSettings.Builder} avoiding the need to * create one manually via {@link KafkaSettings#builder()}. * * When the {@link Consumer} completes, {@link KafkaSettings.Builder#build()} is called immediately and its * result is passed to {@link #kafkaSettings(KafkaSettings)}. * * @param kafkaSettings * a consumer that will call methods on {@link KafkaSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #kafkaSettings(KafkaSettings) */ default Builder kafkaSettings(Consumer kafkaSettings) { return kafkaSettings(KafkaSettings.builder().applyMutation(kafkaSettings).build()); } /** *

* The settings for the Elasticsearch source endpoint. For more information, see the * ElasticsearchSettings structure. *

* * @param elasticsearchSettings * The settings for the Elasticsearch source endpoint. For more information, see the * ElasticsearchSettings structure. * @return Returns a reference to this object so that method calls can be chained together. */ Builder elasticsearchSettings(ElasticsearchSettings elasticsearchSettings); /** *

* The settings for the Elasticsearch source endpoint. For more information, see the * ElasticsearchSettings structure. *

* This is a convenience that creates an instance of the {@link ElasticsearchSettings.Builder} avoiding the need * to create one manually via {@link ElasticsearchSettings#builder()}. * * When the {@link Consumer} completes, {@link ElasticsearchSettings.Builder#build()} is called immediately and * its result is passed to {@link #elasticsearchSettings(ElasticsearchSettings)}. * * @param elasticsearchSettings * a consumer that will call methods on {@link ElasticsearchSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #elasticsearchSettings(ElasticsearchSettings) */ default Builder elasticsearchSettings(Consumer elasticsearchSettings) { return elasticsearchSettings(ElasticsearchSettings.builder().applyMutation(elasticsearchSettings).build()); } /** *

* The settings for the Amazon Neptune target endpoint. For more information, see the * NeptuneSettings structure. *

* * @param neptuneSettings * The settings for the Amazon Neptune target endpoint. For more information, see the * NeptuneSettings structure. * @return Returns a reference to this object so that method calls can be chained together. */ Builder neptuneSettings(NeptuneSettings neptuneSettings); /** *

* The settings for the Amazon Neptune target endpoint. For more information, see the * NeptuneSettings structure. *

* This is a convenience that creates an instance of the {@link NeptuneSettings.Builder} avoiding the need to * create one manually via {@link NeptuneSettings#builder()}. * * When the {@link Consumer} completes, {@link NeptuneSettings.Builder#build()} is called immediately and its * result is passed to {@link #neptuneSettings(NeptuneSettings)}. * * @param neptuneSettings * a consumer that will call methods on {@link NeptuneSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #neptuneSettings(NeptuneSettings) */ default Builder neptuneSettings(Consumer neptuneSettings) { return neptuneSettings(NeptuneSettings.builder().applyMutation(neptuneSettings).build()); } /** *

* Settings for the Amazon Redshift endpoint. *

* * @param redshiftSettings * Settings for the Amazon Redshift endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ Builder redshiftSettings(RedshiftSettings redshiftSettings); /** *

* Settings for the Amazon Redshift endpoint. *

* This is a convenience that creates an instance of the {@link RedshiftSettings.Builder} avoiding the need to * create one manually via {@link RedshiftSettings#builder()}. * * When the {@link Consumer} completes, {@link RedshiftSettings.Builder#build()} is called immediately and its * result is passed to {@link #redshiftSettings(RedshiftSettings)}. * * @param redshiftSettings * a consumer that will call methods on {@link RedshiftSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #redshiftSettings(RedshiftSettings) */ default Builder redshiftSettings(Consumer redshiftSettings) { return redshiftSettings(RedshiftSettings.builder().applyMutation(redshiftSettings).build()); } /** *

* The settings for the PostgreSQL source and target endpoint. For more information, see the * PostgreSQLSettings structure. *

* * @param postgreSQLSettings * The settings for the PostgreSQL source and target endpoint. For more information, see the * PostgreSQLSettings structure. * @return Returns a reference to this object so that method calls can be chained together. */ Builder postgreSQLSettings(PostgreSQLSettings postgreSQLSettings); /** *

* The settings for the PostgreSQL source and target endpoint. For more information, see the * PostgreSQLSettings structure. *

* This is a convenience that creates an instance of the {@link PostgreSQLSettings.Builder} avoiding the need to * create one manually via {@link PostgreSQLSettings#builder()}. * * When the {@link Consumer} completes, {@link PostgreSQLSettings.Builder#build()} is called immediately and its * result is passed to {@link #postgreSQLSettings(PostgreSQLSettings)}. * * @param postgreSQLSettings * a consumer that will call methods on {@link PostgreSQLSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #postgreSQLSettings(PostgreSQLSettings) */ default Builder postgreSQLSettings(Consumer postgreSQLSettings) { return postgreSQLSettings(PostgreSQLSettings.builder().applyMutation(postgreSQLSettings).build()); } /** *

* The settings for the MySQL source and target endpoint. For more information, see the * MySQLSettings structure. *

* * @param mySQLSettings * The settings for the MySQL source and target endpoint. For more information, see the * MySQLSettings structure. * @return Returns a reference to this object so that method calls can be chained together. */ Builder mySQLSettings(MySQLSettings mySQLSettings); /** *

* The settings for the MySQL source and target endpoint. For more information, see the * MySQLSettings structure. *

* This is a convenience that creates an instance of the {@link MySQLSettings.Builder} avoiding the need to * create one manually via {@link MySQLSettings#builder()}. * * When the {@link Consumer} completes, {@link MySQLSettings.Builder#build()} is called immediately and its * result is passed to {@link #mySQLSettings(MySQLSettings)}. * * @param mySQLSettings * a consumer that will call methods on {@link MySQLSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #mySQLSettings(MySQLSettings) */ default Builder mySQLSettings(Consumer mySQLSettings) { return mySQLSettings(MySQLSettings.builder().applyMutation(mySQLSettings).build()); } /** *

* The settings for the Oracle source and target endpoint. For more information, see the * OracleSettings structure. *

* * @param oracleSettings * The settings for the Oracle source and target endpoint. For more information, see the * OracleSettings structure. * @return Returns a reference to this object so that method calls can be chained together. */ Builder oracleSettings(OracleSettings oracleSettings); /** *

* The settings for the Oracle source and target endpoint. For more information, see the * OracleSettings structure. *

* This is a convenience that creates an instance of the {@link OracleSettings.Builder} avoiding the need to * create one manually via {@link OracleSettings#builder()}. * * When the {@link Consumer} completes, {@link OracleSettings.Builder#build()} is called immediately and its * result is passed to {@link #oracleSettings(OracleSettings)}. * * @param oracleSettings * a consumer that will call methods on {@link OracleSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #oracleSettings(OracleSettings) */ default Builder oracleSettings(Consumer oracleSettings) { return oracleSettings(OracleSettings.builder().applyMutation(oracleSettings).build()); } /** *

* The settings for the SAP ASE source and target endpoint. For more information, see the * SybaseSettings structure. *

* * @param sybaseSettings * The settings for the SAP ASE source and target endpoint. For more information, see the * SybaseSettings structure. * @return Returns a reference to this object so that method calls can be chained together. */ Builder sybaseSettings(SybaseSettings sybaseSettings); /** *

* The settings for the SAP ASE source and target endpoint. For more information, see the * SybaseSettings structure. *

* This is a convenience that creates an instance of the {@link SybaseSettings.Builder} avoiding the need to * create one manually via {@link SybaseSettings#builder()}. * * When the {@link Consumer} completes, {@link SybaseSettings.Builder#build()} is called immediately and its * result is passed to {@link #sybaseSettings(SybaseSettings)}. * * @param sybaseSettings * a consumer that will call methods on {@link SybaseSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #sybaseSettings(SybaseSettings) */ default Builder sybaseSettings(Consumer sybaseSettings) { return sybaseSettings(SybaseSettings.builder().applyMutation(sybaseSettings).build()); } /** *

* The settings for the Microsoft SQL Server source and target endpoint. For more information, see the * MicrosoftSQLServerSettings structure. *

* * @param microsoftSQLServerSettings * The settings for the Microsoft SQL Server source and target endpoint. For more information, see the * MicrosoftSQLServerSettings structure. * @return Returns a reference to this object so that method calls can be chained together. */ Builder microsoftSQLServerSettings(MicrosoftSQLServerSettings microsoftSQLServerSettings); /** *

* The settings for the Microsoft SQL Server source and target endpoint. For more information, see the * MicrosoftSQLServerSettings structure. *

* This is a convenience that creates an instance of the {@link MicrosoftSQLServerSettings.Builder} avoiding the * need to create one manually via {@link MicrosoftSQLServerSettings#builder()}. * * When the {@link Consumer} completes, {@link MicrosoftSQLServerSettings.Builder#build()} is called immediately * and its result is passed to {@link #microsoftSQLServerSettings(MicrosoftSQLServerSettings)}. * * @param microsoftSQLServerSettings * a consumer that will call methods on {@link MicrosoftSQLServerSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #microsoftSQLServerSettings(MicrosoftSQLServerSettings) */ default Builder microsoftSQLServerSettings(Consumer microsoftSQLServerSettings) { return microsoftSQLServerSettings(MicrosoftSQLServerSettings.builder().applyMutation(microsoftSQLServerSettings) .build()); } /** *

* The settings for the IBM Db2 LUW source endpoint. For more information, see the IBMDb2Settings * structure. *

* * @param ibmDb2Settings * The settings for the IBM Db2 LUW source endpoint. For more information, see the * IBMDb2Settings structure. * @return Returns a reference to this object so that method calls can be chained together. */ Builder ibmDb2Settings(IBMDb2Settings ibmDb2Settings); /** *

* The settings for the IBM Db2 LUW source endpoint. For more information, see the IBMDb2Settings * structure. *

* This is a convenience that creates an instance of the {@link IBMDb2Settings.Builder} avoiding the need to * create one manually via {@link IBMDb2Settings#builder()}. * * When the {@link Consumer} completes, {@link IBMDb2Settings.Builder#build()} is called immediately and its * result is passed to {@link #ibmDb2Settings(IBMDb2Settings)}. * * @param ibmDb2Settings * a consumer that will call methods on {@link IBMDb2Settings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #ibmDb2Settings(IBMDb2Settings) */ default Builder ibmDb2Settings(Consumer ibmDb2Settings) { return ibmDb2Settings(IBMDb2Settings.builder().applyMutation(ibmDb2Settings).build()); } /** * Sets the value of the DocDbSettings property for this object. * * @param docDbSettings * The new value for the DocDbSettings property for this object. * @return Returns a reference to this object so that method calls can be chained together. */ Builder docDbSettings(DocDbSettings docDbSettings); /** * Sets the value of the DocDbSettings property for this object. * * This is a convenience that creates an instance of the {@link DocDbSettings.Builder} avoiding the need to * create one manually via {@link DocDbSettings#builder()}. * * When the {@link Consumer} completes, {@link DocDbSettings.Builder#build()} is called immediately and its * result is passed to {@link #docDbSettings(DocDbSettings)}. * * @param docDbSettings * a consumer that will call methods on {@link DocDbSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #docDbSettings(DocDbSettings) */ default Builder docDbSettings(Consumer docDbSettings) { return docDbSettings(DocDbSettings.builder().applyMutation(docDbSettings).build()); } } static final class BuilderImpl implements Builder { private String endpointIdentifier; private String endpointType; private String engineName; private String engineDisplayName; private String username; private String serverName; private Integer port; private String databaseName; private String extraConnectionAttributes; private String status; private String kmsKeyId; private String endpointArn; private String certificateArn; private String sslMode; private String serviceAccessRoleArn; private String externalTableDefinition; private String externalId; private DynamoDbSettings dynamoDbSettings; private S3Settings s3Settings; private DmsTransferSettings dmsTransferSettings; private MongoDbSettings mongoDbSettings; private KinesisSettings kinesisSettings; private KafkaSettings kafkaSettings; private ElasticsearchSettings elasticsearchSettings; private NeptuneSettings neptuneSettings; private RedshiftSettings redshiftSettings; private PostgreSQLSettings postgreSQLSettings; private MySQLSettings mySQLSettings; private OracleSettings oracleSettings; private SybaseSettings sybaseSettings; private MicrosoftSQLServerSettings microsoftSQLServerSettings; private IBMDb2Settings ibmDb2Settings; private DocDbSettings docDbSettings; private BuilderImpl() { } private BuilderImpl(Endpoint model) { endpointIdentifier(model.endpointIdentifier); endpointType(model.endpointType); engineName(model.engineName); engineDisplayName(model.engineDisplayName); username(model.username); serverName(model.serverName); port(model.port); databaseName(model.databaseName); extraConnectionAttributes(model.extraConnectionAttributes); status(model.status); kmsKeyId(model.kmsKeyId); endpointArn(model.endpointArn); certificateArn(model.certificateArn); sslMode(model.sslMode); serviceAccessRoleArn(model.serviceAccessRoleArn); externalTableDefinition(model.externalTableDefinition); externalId(model.externalId); dynamoDbSettings(model.dynamoDbSettings); s3Settings(model.s3Settings); dmsTransferSettings(model.dmsTransferSettings); mongoDbSettings(model.mongoDbSettings); kinesisSettings(model.kinesisSettings); kafkaSettings(model.kafkaSettings); elasticsearchSettings(model.elasticsearchSettings); neptuneSettings(model.neptuneSettings); redshiftSettings(model.redshiftSettings); postgreSQLSettings(model.postgreSQLSettings); mySQLSettings(model.mySQLSettings); oracleSettings(model.oracleSettings); sybaseSettings(model.sybaseSettings); microsoftSQLServerSettings(model.microsoftSQLServerSettings); ibmDb2Settings(model.ibmDb2Settings); docDbSettings(model.docDbSettings); } public final String getEndpointIdentifier() { return endpointIdentifier; } @Override public final Builder endpointIdentifier(String endpointIdentifier) { this.endpointIdentifier = endpointIdentifier; return this; } public final void setEndpointIdentifier(String endpointIdentifier) { this.endpointIdentifier = endpointIdentifier; } public final String getEndpointType() { return endpointType; } @Override public final Builder endpointType(String endpointType) { this.endpointType = endpointType; return this; } @Override public final Builder endpointType(ReplicationEndpointTypeValue endpointType) { this.endpointType(endpointType == null ? null : endpointType.toString()); return this; } public final void setEndpointType(String endpointType) { this.endpointType = endpointType; } public final String getEngineName() { return engineName; } @Override public final Builder engineName(String engineName) { this.engineName = engineName; return this; } public final void setEngineName(String engineName) { this.engineName = engineName; } public final String getEngineDisplayName() { return engineDisplayName; } @Override public final Builder engineDisplayName(String engineDisplayName) { this.engineDisplayName = engineDisplayName; return this; } public final void setEngineDisplayName(String engineDisplayName) { this.engineDisplayName = engineDisplayName; } public final String getUsername() { return username; } @Override public final Builder username(String username) { this.username = username; return this; } public final void setUsername(String username) { this.username = username; } public final String getServerName() { return serverName; } @Override public final Builder serverName(String serverName) { this.serverName = serverName; return this; } public final void setServerName(String serverName) { this.serverName = serverName; } public final Integer getPort() { return port; } @Override public final Builder port(Integer port) { this.port = port; return this; } public final void setPort(Integer port) { this.port = port; } public final String getDatabaseName() { return databaseName; } @Override public final Builder databaseName(String databaseName) { this.databaseName = databaseName; return this; } public final void setDatabaseName(String databaseName) { this.databaseName = databaseName; } public final String getExtraConnectionAttributes() { return extraConnectionAttributes; } @Override public final Builder extraConnectionAttributes(String extraConnectionAttributes) { this.extraConnectionAttributes = extraConnectionAttributes; return this; } public final void setExtraConnectionAttributes(String extraConnectionAttributes) { this.extraConnectionAttributes = extraConnectionAttributes; } public final String getStatus() { return status; } @Override public final Builder status(String status) { this.status = status; return this; } public final void setStatus(String status) { this.status = status; } public final String getKmsKeyId() { return kmsKeyId; } @Override public final Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } public final void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } public final String getEndpointArn() { return endpointArn; } @Override public final Builder endpointArn(String endpointArn) { this.endpointArn = endpointArn; return this; } public final void setEndpointArn(String endpointArn) { this.endpointArn = endpointArn; } public final String getCertificateArn() { return certificateArn; } @Override public final Builder certificateArn(String certificateArn) { this.certificateArn = certificateArn; return this; } public final void setCertificateArn(String certificateArn) { this.certificateArn = certificateArn; } public final String getSslMode() { return sslMode; } @Override public final Builder sslMode(String sslMode) { this.sslMode = sslMode; return this; } @Override public final Builder sslMode(DmsSslModeValue sslMode) { this.sslMode(sslMode == null ? null : sslMode.toString()); return this; } public final void setSslMode(String sslMode) { this.sslMode = sslMode; } public final String getServiceAccessRoleArn() { return serviceAccessRoleArn; } @Override public final Builder serviceAccessRoleArn(String serviceAccessRoleArn) { this.serviceAccessRoleArn = serviceAccessRoleArn; return this; } public final void setServiceAccessRoleArn(String serviceAccessRoleArn) { this.serviceAccessRoleArn = serviceAccessRoleArn; } public final String getExternalTableDefinition() { return externalTableDefinition; } @Override public final Builder externalTableDefinition(String externalTableDefinition) { this.externalTableDefinition = externalTableDefinition; return this; } public final void setExternalTableDefinition(String externalTableDefinition) { this.externalTableDefinition = externalTableDefinition; } public final String getExternalId() { return externalId; } @Override public final Builder externalId(String externalId) { this.externalId = externalId; return this; } public final void setExternalId(String externalId) { this.externalId = externalId; } public final DynamoDbSettings.Builder getDynamoDbSettings() { return dynamoDbSettings != null ? dynamoDbSettings.toBuilder() : null; } @Override public final Builder dynamoDbSettings(DynamoDbSettings dynamoDbSettings) { this.dynamoDbSettings = dynamoDbSettings; return this; } public final void setDynamoDbSettings(DynamoDbSettings.BuilderImpl dynamoDbSettings) { this.dynamoDbSettings = dynamoDbSettings != null ? dynamoDbSettings.build() : null; } public final S3Settings.Builder getS3Settings() { return s3Settings != null ? s3Settings.toBuilder() : null; } @Override public final Builder s3Settings(S3Settings s3Settings) { this.s3Settings = s3Settings; return this; } public final void setS3Settings(S3Settings.BuilderImpl s3Settings) { this.s3Settings = s3Settings != null ? s3Settings.build() : null; } public final DmsTransferSettings.Builder getDmsTransferSettings() { return dmsTransferSettings != null ? dmsTransferSettings.toBuilder() : null; } @Override public final Builder dmsTransferSettings(DmsTransferSettings dmsTransferSettings) { this.dmsTransferSettings = dmsTransferSettings; return this; } public final void setDmsTransferSettings(DmsTransferSettings.BuilderImpl dmsTransferSettings) { this.dmsTransferSettings = dmsTransferSettings != null ? dmsTransferSettings.build() : null; } public final MongoDbSettings.Builder getMongoDbSettings() { return mongoDbSettings != null ? mongoDbSettings.toBuilder() : null; } @Override public final Builder mongoDbSettings(MongoDbSettings mongoDbSettings) { this.mongoDbSettings = mongoDbSettings; return this; } public final void setMongoDbSettings(MongoDbSettings.BuilderImpl mongoDbSettings) { this.mongoDbSettings = mongoDbSettings != null ? mongoDbSettings.build() : null; } public final KinesisSettings.Builder getKinesisSettings() { return kinesisSettings != null ? kinesisSettings.toBuilder() : null; } @Override public final Builder kinesisSettings(KinesisSettings kinesisSettings) { this.kinesisSettings = kinesisSettings; return this; } public final void setKinesisSettings(KinesisSettings.BuilderImpl kinesisSettings) { this.kinesisSettings = kinesisSettings != null ? kinesisSettings.build() : null; } public final KafkaSettings.Builder getKafkaSettings() { return kafkaSettings != null ? kafkaSettings.toBuilder() : null; } @Override public final Builder kafkaSettings(KafkaSettings kafkaSettings) { this.kafkaSettings = kafkaSettings; return this; } public final void setKafkaSettings(KafkaSettings.BuilderImpl kafkaSettings) { this.kafkaSettings = kafkaSettings != null ? kafkaSettings.build() : null; } public final ElasticsearchSettings.Builder getElasticsearchSettings() { return elasticsearchSettings != null ? elasticsearchSettings.toBuilder() : null; } @Override public final Builder elasticsearchSettings(ElasticsearchSettings elasticsearchSettings) { this.elasticsearchSettings = elasticsearchSettings; return this; } public final void setElasticsearchSettings(ElasticsearchSettings.BuilderImpl elasticsearchSettings) { this.elasticsearchSettings = elasticsearchSettings != null ? elasticsearchSettings.build() : null; } public final NeptuneSettings.Builder getNeptuneSettings() { return neptuneSettings != null ? neptuneSettings.toBuilder() : null; } @Override public final Builder neptuneSettings(NeptuneSettings neptuneSettings) { this.neptuneSettings = neptuneSettings; return this; } public final void setNeptuneSettings(NeptuneSettings.BuilderImpl neptuneSettings) { this.neptuneSettings = neptuneSettings != null ? neptuneSettings.build() : null; } public final RedshiftSettings.Builder getRedshiftSettings() { return redshiftSettings != null ? redshiftSettings.toBuilder() : null; } @Override public final Builder redshiftSettings(RedshiftSettings redshiftSettings) { this.redshiftSettings = redshiftSettings; return this; } public final void setRedshiftSettings(RedshiftSettings.BuilderImpl redshiftSettings) { this.redshiftSettings = redshiftSettings != null ? redshiftSettings.build() : null; } public final PostgreSQLSettings.Builder getPostgreSQLSettings() { return postgreSQLSettings != null ? postgreSQLSettings.toBuilder() : null; } @Override public final Builder postgreSQLSettings(PostgreSQLSettings postgreSQLSettings) { this.postgreSQLSettings = postgreSQLSettings; return this; } public final void setPostgreSQLSettings(PostgreSQLSettings.BuilderImpl postgreSQLSettings) { this.postgreSQLSettings = postgreSQLSettings != null ? postgreSQLSettings.build() : null; } public final MySQLSettings.Builder getMySQLSettings() { return mySQLSettings != null ? mySQLSettings.toBuilder() : null; } @Override public final Builder mySQLSettings(MySQLSettings mySQLSettings) { this.mySQLSettings = mySQLSettings; return this; } public final void setMySQLSettings(MySQLSettings.BuilderImpl mySQLSettings) { this.mySQLSettings = mySQLSettings != null ? mySQLSettings.build() : null; } public final OracleSettings.Builder getOracleSettings() { return oracleSettings != null ? oracleSettings.toBuilder() : null; } @Override public final Builder oracleSettings(OracleSettings oracleSettings) { this.oracleSettings = oracleSettings; return this; } public final void setOracleSettings(OracleSettings.BuilderImpl oracleSettings) { this.oracleSettings = oracleSettings != null ? oracleSettings.build() : null; } public final SybaseSettings.Builder getSybaseSettings() { return sybaseSettings != null ? sybaseSettings.toBuilder() : null; } @Override public final Builder sybaseSettings(SybaseSettings sybaseSettings) { this.sybaseSettings = sybaseSettings; return this; } public final void setSybaseSettings(SybaseSettings.BuilderImpl sybaseSettings) { this.sybaseSettings = sybaseSettings != null ? sybaseSettings.build() : null; } public final MicrosoftSQLServerSettings.Builder getMicrosoftSQLServerSettings() { return microsoftSQLServerSettings != null ? microsoftSQLServerSettings.toBuilder() : null; } @Override public final Builder microsoftSQLServerSettings(MicrosoftSQLServerSettings microsoftSQLServerSettings) { this.microsoftSQLServerSettings = microsoftSQLServerSettings; return this; } public final void setMicrosoftSQLServerSettings(MicrosoftSQLServerSettings.BuilderImpl microsoftSQLServerSettings) { this.microsoftSQLServerSettings = microsoftSQLServerSettings != null ? microsoftSQLServerSettings.build() : null; } public final IBMDb2Settings.Builder getIbmDb2Settings() { return ibmDb2Settings != null ? ibmDb2Settings.toBuilder() : null; } @Override public final Builder ibmDb2Settings(IBMDb2Settings ibmDb2Settings) { this.ibmDb2Settings = ibmDb2Settings; return this; } public final void setIbmDb2Settings(IBMDb2Settings.BuilderImpl ibmDb2Settings) { this.ibmDb2Settings = ibmDb2Settings != null ? ibmDb2Settings.build() : null; } public final DocDbSettings.Builder getDocDbSettings() { return docDbSettings != null ? docDbSettings.toBuilder() : null; } @Override public final Builder docDbSettings(DocDbSettings docDbSettings) { this.docDbSettings = docDbSettings; return this; } public final void setDocDbSettings(DocDbSettings.BuilderImpl docDbSettings) { this.docDbSettings = docDbSettings != null ? docDbSettings.build() : null; } @Override public Endpoint build() { return new Endpoint(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy