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

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

/*
 * 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.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
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.ListTrait;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
import software.amazon.awssdk.core.util.SdkAutoConstructList;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

*/ @Generated("software.amazon.awssdk:codegen") public final class CreateEndpointRequest extends DatabaseMigrationRequest implements ToCopyableBuilder { private static final SdkField ENDPOINT_IDENTIFIER_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("EndpointIdentifier").getter(getter(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::engineName)).setter(setter(Builder::engineName)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EngineName").build()).build(); private static final SdkField USERNAME_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("Username").getter(getter(CreateEndpointRequest::username)).setter(setter(Builder::username)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Username").build()).build(); private static final SdkField PASSWORD_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("Password").getter(getter(CreateEndpointRequest::password)).setter(setter(Builder::password)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Password").build()).build(); private static final SdkField SERVER_NAME_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("ServerName").getter(getter(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::extraConnectionAttributes)) .setter(setter(Builder::extraConnectionAttributes)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ExtraConnectionAttributes").build()) .build(); private static final SdkField KMS_KEY_ID_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("KmsKeyId").getter(getter(CreateEndpointRequest::kmsKeyId)).setter(setter(Builder::kmsKeyId)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KmsKeyId").build()).build(); private static final SdkField> TAGS_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("Tags") .getter(getter(CreateEndpointRequest::tags)) .setter(setter(Builder::tags)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Tags").build(), ListTrait .builder() .memberLocationName(null) .memberFieldInfo( SdkField. builder(MarshallingType.SDK_POJO) .constructor(Tag::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("member").build()).build()).build()).build(); private static final SdkField CERTIFICATE_ARN_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("CertificateArn").getter(getter(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::externalTableDefinition)) .setter(setter(Builder::externalTableDefinition)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ExternalTableDefinition").build()) .build(); private static final SdkField DYNAMO_DB_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("DynamoDbSettings") .getter(getter(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::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(CreateEndpointRequest::ibmDb2Settings)).setter(setter(Builder::ibmDb2Settings)) .constructor(IBMDb2Settings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("IBMDb2Settings").build()).build(); private static final SdkField RESOURCE_IDENTIFIER_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("ResourceIdentifier").getter(getter(CreateEndpointRequest::resourceIdentifier)) .setter(setter(Builder::resourceIdentifier)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ResourceIdentifier").build()) .build(); private static final SdkField DOC_DB_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("DocDbSettings") .getter(getter(CreateEndpointRequest::docDbSettings)).setter(setter(Builder::docDbSettings)) .constructor(DocDbSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DocDbSettings").build()).build(); private static final SdkField REDIS_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("RedisSettings") .getter(getter(CreateEndpointRequest::redisSettings)).setter(setter(Builder::redisSettings)) .constructor(RedisSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("RedisSettings").build()).build(); private static final SdkField GCP_MY_SQL_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("GcpMySQLSettings") .getter(getter(CreateEndpointRequest::gcpMySQLSettings)).setter(setter(Builder::gcpMySQLSettings)) .constructor(GcpMySQLSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("GcpMySQLSettings").build()).build(); private static final SdkField TIMESTREAM_SETTINGS_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("TimestreamSettings") .getter(getter(CreateEndpointRequest::timestreamSettings)).setter(setter(Builder::timestreamSettings)) .constructor(TimestreamSettings::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TimestreamSettings").build()) .build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ENDPOINT_IDENTIFIER_FIELD, ENDPOINT_TYPE_FIELD, ENGINE_NAME_FIELD, USERNAME_FIELD, PASSWORD_FIELD, SERVER_NAME_FIELD, PORT_FIELD, DATABASE_NAME_FIELD, EXTRA_CONNECTION_ATTRIBUTES_FIELD, KMS_KEY_ID_FIELD, TAGS_FIELD, CERTIFICATE_ARN_FIELD, SSL_MODE_FIELD, SERVICE_ACCESS_ROLE_ARN_FIELD, EXTERNAL_TABLE_DEFINITION_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, RESOURCE_IDENTIFIER_FIELD, DOC_DB_SETTINGS_FIELD, REDIS_SETTINGS_FIELD, GCP_MY_SQL_SETTINGS_FIELD, TIMESTREAM_SETTINGS_FIELD)); private static final Map> SDK_NAME_TO_FIELD = memberNameToFieldInitializer(); private final String endpointIdentifier; private final String endpointType; private final String engineName; private final String username; private final String password; private final String serverName; private final Integer port; private final String databaseName; private final String extraConnectionAttributes; private final String kmsKeyId; private final List tags; private final String certificateArn; private final String sslMode; private final String serviceAccessRoleArn; private final String externalTableDefinition; 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 String resourceIdentifier; private final DocDbSettings docDbSettings; private final RedisSettings redisSettings; private final GcpMySQLSettings gcpMySQLSettings; private final TimestreamSettings timestreamSettings; private CreateEndpointRequest(BuilderImpl builder) { super(builder); this.endpointIdentifier = builder.endpointIdentifier; this.endpointType = builder.endpointType; this.engineName = builder.engineName; this.username = builder.username; this.password = builder.password; this.serverName = builder.serverName; this.port = builder.port; this.databaseName = builder.databaseName; this.extraConnectionAttributes = builder.extraConnectionAttributes; this.kmsKeyId = builder.kmsKeyId; this.tags = builder.tags; this.certificateArn = builder.certificateArn; this.sslMode = builder.sslMode; this.serviceAccessRoleArn = builder.serviceAccessRoleArn; this.externalTableDefinition = builder.externalTableDefinition; 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.resourceIdentifier = builder.resourceIdentifier; this.docDbSettings = builder.docDbSettings; this.redisSettings = builder.redisSettings; this.gcpMySQLSettings = builder.gcpMySQLSettings; this.timestreamSettings = builder.timestreamSettings; } /** *

* 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 type of engine for the endpoint. Valid values, depending on the EndpointType value, include * "mysql", "oracle", "postgres", "mariadb", * "aurora", "aurora-postgresql", "opensearch", "redshift", * "s3", "db2", "db2-zos", "azuredb", "sybase", * "dynamodb", "mongodb", "kinesis", "kafka", * "elasticsearch", "docdb", "sqlserver", "neptune", * "babelfish", redshift-serverless, aurora-serverless, * aurora-postgresql-serverless, gcp-mysql, azure-sql-managed-instance, * redis, dms-transfer. *

* * @return The type of engine for the endpoint. Valid values, depending on the EndpointType value, * include "mysql", "oracle", "postgres", "mariadb", * "aurora", "aurora-postgresql", "opensearch", * "redshift", "s3", "db2", "db2-zos", * "azuredb", "sybase", "dynamodb", "mongodb", * "kinesis", "kafka", "elasticsearch", "docdb", * "sqlserver", "neptune", "babelfish", * redshift-serverless, aurora-serverless, * aurora-postgresql-serverless, gcp-mysql, * azure-sql-managed-instance, redis, dms-transfer. */ public final String engineName() { return engineName; } /** *

* The user name to be used to log in to the endpoint database. *

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

* The password to be used to log in to the endpoint database. *

* * @return The password to be used to log in to the endpoint database. */ public final String password() { return password; } /** *

* The name of the server where the endpoint database resides. *

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

* The port used by the endpoint database. *

* * @return The port used by the endpoint database. */ public final Integer port() { return port; } /** *

* The name of the endpoint database. For a MySQL source or target endpoint, do not specify DatabaseName. To migrate * to a specific database, use this setting and targetDbType. *

* * @return The name of the endpoint database. For a MySQL source or target endpoint, do not specify DatabaseName. To * migrate to a specific database, use this setting and targetDbType. */ public final String databaseName() { return databaseName; } /** *

* Additional attributes associated with the connection. Each attribute is specified as a name-value pair associated * by an equal sign (=). Multiple attributes are separated by a semicolon (;) with no additional white space. For * information on the attributes available for connecting your source or target endpoint, see Working with DMS Endpoints in the * Database Migration Service User Guide. *

* * @return Additional attributes associated with the connection. Each attribute is specified as a name-value pair * associated by an equal sign (=). Multiple attributes are separated by a semicolon (;) with no additional * white space. For information on the attributes available for connecting your source or target endpoint, * see Working with DMS * Endpoints in the Database Migration Service User Guide. */ public final String extraConnectionAttributes() { return extraConnectionAttributes; } /** *

* An 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 DMS uses your default encryption key. *

*

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

* * @return An 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 DMS uses your default * encryption key. *

*

* KMS creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services * account has a different default encryption key for each Amazon Web Services Region. */ public final String kmsKeyId() { return kmsKeyId; } /** * For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that * the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful * because the SDK will never return a null collection or map, but you may need to differentiate between the service * returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true * if a value for the property was specified in the request builder, and false if a value was not specified. */ public final boolean hasTags() { return tags != null && !(tags instanceof SdkAutoConstructList); } /** *

* One or more tags to be assigned to the endpoint. *

*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

*

* This method will never return null. If you would like to know whether the service returned this field (so that * you can differentiate between null and empty), you can use the {@link #hasTags} method. *

* * @return One or more tags to be assigned to the endpoint. */ public final List tags() { return tags; } /** *

* The Amazon Resource Name (ARN) for the certificate. *

* * @return The Amazon Resource Name (ARN) for the certificate. */ public final String certificateArn() { return certificateArn; } /** *

* The Secure Sockets Layer (SSL) mode to use for the SSL connection. The default 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 Secure Sockets Layer (SSL) mode to use for the SSL connection. The default is none * @see DmsSslModeValue */ public final DmsSslModeValue sslMode() { return DmsSslModeValue.fromValue(sslMode); } /** *

* The Secure Sockets Layer (SSL) mode to use for the SSL connection. The default 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 Secure Sockets Layer (SSL) mode to use for the SSL connection. The default is none * @see DmsSslModeValue */ public final String sslModeAsString() { return sslMode; } /** *

* The Amazon Resource Name (ARN) for the service access role that you want to use to create the endpoint. The role * must allow the iam:PassRole action. *

* * @return The Amazon Resource Name (ARN) for the service access role that you want to use to create the endpoint. * The role must allow the iam:PassRole action. */ public final String serviceAccessRoleArn() { return serviceAccessRoleArn; } /** *

* The external table definition. *

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

* Settings in JSON format for the target Amazon DynamoDB endpoint. For information about other available settings, * see Using Object Mapping to Migrate Data to DynamoDB in the Database Migration Service User Guide. *

* * @return Settings in JSON format for the target Amazon DynamoDB endpoint. For information about other available * settings, see Using Object Mapping to Migrate Data to DynamoDB in the Database Migration Service User * Guide. */ public final DynamoDbSettings dynamoDbSettings() { return dynamoDbSettings; } /** *

* Settings in JSON format for the target Amazon S3 endpoint. For more information about the available settings, see * Extra * Connection Attributes When Using Amazon S3 as a Target for DMS in the Database Migration Service User * Guide. *

* * @return Settings in JSON format for the target Amazon S3 endpoint. For more information about the available * settings, see Extra Connection Attributes When Using Amazon S3 as a Target for DMS in the Database Migration * Service User Guide. */ 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 Amazon Resource Name (ARN) used by the service access IAM role. The role * must allow the iam:PassRole action. *

    *
  • *
  • *

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

    *
  • *
*

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

*

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

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

*

* Possible settings include the following: *

*
    *
  • *

    * ServiceAccessRoleArn - The Amazon Resource Name (ARN) used by the service access IAM role. * The role must allow the iam:PassRole action. *

    *
  • *
  • *

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

    *
  • *
*

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

*

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

* Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, see * Endpoint configuration settings when using MongoDB as a source for Database Migration Service in the * Database Migration Service User Guide. *

* * @return Settings in JSON format for the source MongoDB endpoint. For more information about the available * settings, see Endpoint configuration settings when using MongoDB as a source for Database Migration Service in the * Database Migration Service User Guide. */ public final MongoDbSettings mongoDbSettings() { return mongoDbSettings; } /** *

* Settings in JSON format for the target endpoint for Amazon Kinesis Data Streams. For more information about the * available settings, see Using object mapping to migrate data to a Kinesis data stream in the Database Migration Service User * Guide. *

* * @return Settings in JSON format for the target endpoint for Amazon Kinesis Data Streams. For more information * about the available settings, see Using object mapping to migrate data to a Kinesis data stream in the Database Migration Service * User Guide. */ public final KinesisSettings kinesisSettings() { return kinesisSettings; } /** *

* Settings in JSON format for the target Apache Kafka endpoint. For more information about the available settings, * see Using object mapping to migrate data to a Kafka topic in the Database Migration Service User Guide. *

* * @return Settings in JSON format for the target Apache Kafka endpoint. For more information about the available * settings, see Using object mapping to migrate data to a Kafka topic in the Database Migration Service User * Guide. */ public final KafkaSettings kafkaSettings() { return kafkaSettings; } /** *

* Settings in JSON format for the target OpenSearch endpoint. For more information about the available settings, * see Extra Connection Attributes When Using OpenSearch as a Target for DMS in the Database Migration Service * User Guide. *

* * @return Settings in JSON format for the target OpenSearch endpoint. For more information about the available * settings, see Extra Connection Attributes When Using OpenSearch as a Target for DMS in the Database Migration * Service User Guide. */ public final ElasticsearchSettings elasticsearchSettings() { return elasticsearchSettings; } /** *

* Settings in JSON format for the target Amazon Neptune endpoint. For more information about the available * settings, see Specifying graph-mapping rules using Gremlin and R2RML for Amazon Neptune as a target in the Database * Migration Service User Guide. *

* * @return Settings in JSON format for the target Amazon Neptune endpoint. For more information about the available * settings, see Specifying graph-mapping rules using Gremlin and R2RML for Amazon Neptune as a target in the * Database Migration Service User Guide. */ public final NeptuneSettings neptuneSettings() { return neptuneSettings; } /** * Returns the value of the RedshiftSettings property for this object. * * @return The value of the RedshiftSettings property for this object. */ public final RedshiftSettings redshiftSettings() { return redshiftSettings; } /** *

* Settings in JSON format for the source and target PostgreSQL endpoint. For information about other available * settings, see Extra connection attributes when using PostgreSQL as a source for DMS and Extra connection attributes when using PostgreSQL as a target for DMS in the Database Migration Service * User Guide. *

* * @return Settings in JSON format for the source and target PostgreSQL endpoint. For information about other * available settings, see Extra connection attributes when using PostgreSQL as a source for DMS and Extra connection attributes when using PostgreSQL as a target for DMS in the Database Migration * Service User Guide. */ public final PostgreSQLSettings postgreSQLSettings() { return postgreSQLSettings; } /** *

* Settings in JSON format for the source and target MySQL endpoint. For information about other available settings, * see Extra connection attributes when using MySQL as a source for DMS and Extra connection attributes when using a MySQL-compatible database as a target for DMS in the Database * Migration Service User Guide. *

* * @return Settings in JSON format for the source and target MySQL endpoint. For information about other available * settings, see Extra connection attributes when using MySQL as a source for DMS and Extra connection attributes when using a MySQL-compatible database as a target for DMS in the * Database Migration Service User Guide. */ public final MySQLSettings mySQLSettings() { return mySQLSettings; } /** *

* Settings in JSON format for the source and target Oracle endpoint. For information about other available * settings, see Extra connection attributes when using Oracle as a source for DMS and * Extra connection attributes when using Oracle as a target for DMS in the Database Migration Service User * Guide. *

* * @return Settings in JSON format for the source and target Oracle endpoint. For information about other available * settings, see Extra connection attributes when using Oracle as a source for DMS and Extra connection attributes when using Oracle as a target for DMS in the Database Migration * Service User Guide. */ public final OracleSettings oracleSettings() { return oracleSettings; } /** *

* Settings in JSON format for the source and target SAP ASE endpoint. For information about other available * settings, see Extra connection attributes when using SAP ASE as a source for DMS and Extra connection attributes when using SAP ASE as a target for DMS in the Database Migration Service User * Guide. *

* * @return Settings in JSON format for the source and target SAP ASE endpoint. For information about other available * settings, see Extra connection attributes when using SAP ASE as a source for DMS and Extra connection attributes when using SAP ASE as a target for DMS in the Database Migration * Service User Guide. */ public final SybaseSettings sybaseSettings() { return sybaseSettings; } /** *

* Settings in JSON format for the source and target Microsoft SQL Server endpoint. For information about other * available settings, see Extra connection attributes when using SQL Server as a source for DMS and Extra connection attributes when using SQL Server as a target for DMS in the Database Migration Service * User Guide. *

* * @return Settings in JSON format for the source and target Microsoft SQL Server endpoint. For information about * other available settings, see Extra connection attributes when using SQL Server as a source for DMS and Extra connection attributes when using SQL Server as a target for DMS in the Database Migration * Service User Guide. */ public final MicrosoftSQLServerSettings microsoftSQLServerSettings() { return microsoftSQLServerSettings; } /** *

* Settings in JSON format for the source IBM Db2 LUW endpoint. For information about other available settings, see * * Extra connection attributes when using Db2 LUW as a source for DMS in the Database Migration Service User * Guide. *

* * @return Settings in JSON format for the source IBM Db2 LUW endpoint. For information about other available * settings, see Extra connection attributes when using Db2 LUW as a source for DMS in the Database Migration * Service User Guide. */ public final IBMDb2Settings ibmDb2Settings() { return ibmDb2Settings; } /** *

* A friendly name for the resource identifier at the end of the EndpointArn response parameter that is * returned in the created Endpoint object. The value for this parameter can have up to 31 characters. * It can contain only ASCII letters, digits, and hyphen ('-'). Also, it can't end with a hyphen or contain two * consecutive hyphens, and can only begin with a letter, such as Example-App-ARN1. For example, this * value might result in the EndpointArn value * arn:aws:dms:eu-west-1:012345678901:rep:Example-App-ARN1. If you don't specify a * ResourceIdentifier value, DMS generates a default identifier value for the end of * EndpointArn. *

* * @return A friendly name for the resource identifier at the end of the EndpointArn response parameter * that is returned in the created Endpoint object. The value for this parameter can have up to * 31 characters. It can contain only ASCII letters, digits, and hyphen ('-'). Also, it can't end with a * hyphen or contain two consecutive hyphens, and can only begin with a letter, such as * Example-App-ARN1. For example, this value might result in the EndpointArn value * arn:aws:dms:eu-west-1:012345678901:rep:Example-App-ARN1. If you don't specify a * ResourceIdentifier value, DMS generates a default identifier value for the end of * EndpointArn. */ public final String resourceIdentifier() { return resourceIdentifier; } /** * 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; } /** *

* Settings in JSON format for the target Redis endpoint. *

* * @return Settings in JSON format for the target Redis endpoint. */ public final RedisSettings redisSettings() { return redisSettings; } /** *

* Settings in JSON format for the source GCP MySQL endpoint. *

* * @return Settings in JSON format for the source GCP MySQL endpoint. */ public final GcpMySQLSettings gcpMySQLSettings() { return gcpMySQLSettings; } /** *

* Settings in JSON format for the target Amazon Timestream endpoint. *

* * @return Settings in JSON format for the target Amazon Timestream endpoint. */ public final TimestreamSettings timestreamSettings() { return timestreamSettings; } @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 + super.hashCode(); hashCode = 31 * hashCode + Objects.hashCode(endpointIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(endpointTypeAsString()); hashCode = 31 * hashCode + Objects.hashCode(engineName()); hashCode = 31 * hashCode + Objects.hashCode(username()); hashCode = 31 * hashCode + Objects.hashCode(password()); 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(kmsKeyId()); hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null); 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(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(resourceIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(docDbSettings()); hashCode = 31 * hashCode + Objects.hashCode(redisSettings()); hashCode = 31 * hashCode + Objects.hashCode(gcpMySQLSettings()); hashCode = 31 * hashCode + Objects.hashCode(timestreamSettings()); return hashCode; } @Override public final boolean equals(Object obj) { return super.equals(obj) && equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateEndpointRequest)) { return false; } CreateEndpointRequest other = (CreateEndpointRequest) obj; return Objects.equals(endpointIdentifier(), other.endpointIdentifier()) && Objects.equals(endpointTypeAsString(), other.endpointTypeAsString()) && Objects.equals(engineName(), other.engineName()) && Objects.equals(username(), other.username()) && Objects.equals(password(), other.password()) && Objects.equals(serverName(), other.serverName()) && Objects.equals(port(), other.port()) && Objects.equals(databaseName(), other.databaseName()) && Objects.equals(extraConnectionAttributes(), other.extraConnectionAttributes()) && Objects.equals(kmsKeyId(), other.kmsKeyId()) && hasTags() == other.hasTags() && Objects.equals(tags(), other.tags()) && Objects.equals(certificateArn(), other.certificateArn()) && Objects.equals(sslModeAsString(), other.sslModeAsString()) && Objects.equals(serviceAccessRoleArn(), other.serviceAccessRoleArn()) && Objects.equals(externalTableDefinition(), other.externalTableDefinition()) && 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(resourceIdentifier(), other.resourceIdentifier()) && Objects.equals(docDbSettings(), other.docDbSettings()) && Objects.equals(redisSettings(), other.redisSettings()) && Objects.equals(gcpMySQLSettings(), other.gcpMySQLSettings()) && Objects.equals(timestreamSettings(), other.timestreamSettings()); } /** * 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("CreateEndpointRequest").add("EndpointIdentifier", endpointIdentifier()) .add("EndpointType", endpointTypeAsString()).add("EngineName", engineName()).add("Username", username()) .add("Password", password() == null ? null : "*** Sensitive Data Redacted ***").add("ServerName", serverName()) .add("Port", port()).add("DatabaseName", databaseName()) .add("ExtraConnectionAttributes", extraConnectionAttributes()).add("KmsKeyId", kmsKeyId()) .add("Tags", hasTags() ? tags() : null).add("CertificateArn", certificateArn()).add("SslMode", sslModeAsString()) .add("ServiceAccessRoleArn", serviceAccessRoleArn()).add("ExternalTableDefinition", externalTableDefinition()) .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("ResourceIdentifier", resourceIdentifier()) .add("DocDbSettings", docDbSettings()).add("RedisSettings", redisSettings()) .add("GcpMySQLSettings", gcpMySQLSettings()).add("TimestreamSettings", timestreamSettings()).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 "Username": return Optional.ofNullable(clazz.cast(username())); case "Password": return Optional.ofNullable(clazz.cast(password())); 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 "KmsKeyId": return Optional.ofNullable(clazz.cast(kmsKeyId())); case "Tags": return Optional.ofNullable(clazz.cast(tags())); 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 "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 "ResourceIdentifier": return Optional.ofNullable(clazz.cast(resourceIdentifier())); case "DocDbSettings": return Optional.ofNullable(clazz.cast(docDbSettings())); case "RedisSettings": return Optional.ofNullable(clazz.cast(redisSettings())); case "GcpMySQLSettings": return Optional.ofNullable(clazz.cast(gcpMySQLSettings())); case "TimestreamSettings": return Optional.ofNullable(clazz.cast(timestreamSettings())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } @Override public final Map> sdkFieldNameToField() { return SDK_NAME_TO_FIELD; } private static Map> memberNameToFieldInitializer() { Map> map = new HashMap<>(); map.put("EndpointIdentifier", ENDPOINT_IDENTIFIER_FIELD); map.put("EndpointType", ENDPOINT_TYPE_FIELD); map.put("EngineName", ENGINE_NAME_FIELD); map.put("Username", USERNAME_FIELD); map.put("Password", PASSWORD_FIELD); map.put("ServerName", SERVER_NAME_FIELD); map.put("Port", PORT_FIELD); map.put("DatabaseName", DATABASE_NAME_FIELD); map.put("ExtraConnectionAttributes", EXTRA_CONNECTION_ATTRIBUTES_FIELD); map.put("KmsKeyId", KMS_KEY_ID_FIELD); map.put("Tags", TAGS_FIELD); map.put("CertificateArn", CERTIFICATE_ARN_FIELD); map.put("SslMode", SSL_MODE_FIELD); map.put("ServiceAccessRoleArn", SERVICE_ACCESS_ROLE_ARN_FIELD); map.put("ExternalTableDefinition", EXTERNAL_TABLE_DEFINITION_FIELD); map.put("DynamoDbSettings", DYNAMO_DB_SETTINGS_FIELD); map.put("S3Settings", S3_SETTINGS_FIELD); map.put("DmsTransferSettings", DMS_TRANSFER_SETTINGS_FIELD); map.put("MongoDbSettings", MONGO_DB_SETTINGS_FIELD); map.put("KinesisSettings", KINESIS_SETTINGS_FIELD); map.put("KafkaSettings", KAFKA_SETTINGS_FIELD); map.put("ElasticsearchSettings", ELASTICSEARCH_SETTINGS_FIELD); map.put("NeptuneSettings", NEPTUNE_SETTINGS_FIELD); map.put("RedshiftSettings", REDSHIFT_SETTINGS_FIELD); map.put("PostgreSQLSettings", POSTGRE_SQL_SETTINGS_FIELD); map.put("MySQLSettings", MY_SQL_SETTINGS_FIELD); map.put("OracleSettings", ORACLE_SETTINGS_FIELD); map.put("SybaseSettings", SYBASE_SETTINGS_FIELD); map.put("MicrosoftSQLServerSettings", MICROSOFT_SQL_SERVER_SETTINGS_FIELD); map.put("IBMDb2Settings", IBM_DB2_SETTINGS_FIELD); map.put("ResourceIdentifier", RESOURCE_IDENTIFIER_FIELD); map.put("DocDbSettings", DOC_DB_SETTINGS_FIELD); map.put("RedisSettings", REDIS_SETTINGS_FIELD); map.put("GcpMySQLSettings", GCP_MY_SQL_SETTINGS_FIELD); map.put("TimestreamSettings", TIMESTREAM_SETTINGS_FIELD); return Collections.unmodifiableMap(map); } private static Function getter(Function g) { return obj -> g.apply((CreateEndpointRequest) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends DatabaseMigrationRequest.Builder, 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 type of engine for the endpoint. Valid values, depending on the EndpointType value, include * "mysql", "oracle", "postgres", "mariadb", * "aurora", "aurora-postgresql", "opensearch", "redshift", * "s3", "db2", "db2-zos", "azuredb", "sybase", * "dynamodb", "mongodb", "kinesis", "kafka", * "elasticsearch", "docdb", "sqlserver", "neptune", * "babelfish", redshift-serverless, aurora-serverless, * aurora-postgresql-serverless, gcp-mysql, azure-sql-managed-instance, * redis, dms-transfer. *

* * @param engineName * The type of engine for the endpoint. Valid values, depending on the EndpointType value, * include "mysql", "oracle", "postgres", "mariadb", * "aurora", "aurora-postgresql", "opensearch", * "redshift", "s3", "db2", "db2-zos", * "azuredb", "sybase", "dynamodb", "mongodb", * "kinesis", "kafka", "elasticsearch", "docdb", * "sqlserver", "neptune", "babelfish", * redshift-serverless, aurora-serverless, * aurora-postgresql-serverless, gcp-mysql, * azure-sql-managed-instance, redis, dms-transfer. * @return Returns a reference to this object so that method calls can be chained together. */ Builder engineName(String engineName); /** *

* The user name to be used to log in to the endpoint database. *

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

* The password to be used to log in to the endpoint database. *

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

* The name of the server where the endpoint database resides. *

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

* The port used by the endpoint database. *

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

* The name of the endpoint database. For a MySQL source or target endpoint, do not specify DatabaseName. To * migrate to a specific database, use this setting and targetDbType. *

* * @param databaseName * The name of the endpoint database. For a MySQL source or target endpoint, do not specify DatabaseName. * To migrate to a specific database, use this setting and targetDbType. * @return Returns a reference to this object so that method calls can be chained together. */ Builder databaseName(String databaseName); /** *

* Additional attributes associated with the connection. Each attribute is specified as a name-value pair * associated by an equal sign (=). Multiple attributes are separated by a semicolon (;) with no additional * white space. For information on the attributes available for connecting your source or target endpoint, see * Working with DMS Endpoints * in the Database Migration Service User Guide. *

* * @param extraConnectionAttributes * Additional attributes associated with the connection. Each attribute is specified as a name-value pair * associated by an equal sign (=). Multiple attributes are separated by a semicolon (;) with no * additional white space. For information on the attributes available for connecting your source or * target endpoint, see Working with DMS * Endpoints in the Database Migration Service User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder extraConnectionAttributes(String extraConnectionAttributes); /** *

* An 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 DMS uses your default encryption * key. *

*

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

* * @param kmsKeyId * An 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 DMS uses your default * encryption key. *

*

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

* One or more tags to be assigned to the endpoint. *

* * @param tags * One or more tags to be assigned to the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ Builder tags(Collection tags); /** *

* One or more tags to be assigned to the endpoint. *

* * @param tags * One or more tags to be assigned to the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ Builder tags(Tag... tags); /** *

* One or more tags to be assigned to the endpoint. *

* This is a convenience method that creates an instance of the * {@link software.amazon.awssdk.services.databasemigration.model.Tag.Builder} avoiding the need to create one * manually via {@link software.amazon.awssdk.services.databasemigration.model.Tag#builder()}. * *

* When the {@link Consumer} completes, * {@link software.amazon.awssdk.services.databasemigration.model.Tag.Builder#build()} is called immediately and * its result is passed to {@link #tags(List)}. * * @param tags * a consumer that will call methods on * {@link software.amazon.awssdk.services.databasemigration.model.Tag.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #tags(java.util.Collection) */ Builder tags(Consumer... tags); /** *

* The Amazon Resource Name (ARN) for the certificate. *

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

* The Secure Sockets Layer (SSL) mode to use for the SSL connection. The default is none *

* * @param sslMode * The Secure Sockets Layer (SSL) mode to use for the SSL connection. The default 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 Secure Sockets Layer (SSL) mode to use for the SSL connection. The default is none *

* * @param sslMode * The Secure Sockets Layer (SSL) mode to use for the SSL connection. The default 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) for the service access role that you want to use to create the endpoint. The * role must allow the iam:PassRole action. *

* * @param serviceAccessRoleArn * The Amazon Resource Name (ARN) for the service access role that you want to use to create the * endpoint. The role must allow the iam:PassRole action. * @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); /** *

* Settings in JSON format for the target Amazon DynamoDB endpoint. For information about other available * settings, see Using Object Mapping to Migrate Data to DynamoDB in the Database Migration Service User Guide. *

* * @param dynamoDbSettings * Settings in JSON format for the target Amazon DynamoDB endpoint. For information about other available * settings, see Using Object Mapping to Migrate Data to DynamoDB in the Database Migration Service User * Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder dynamoDbSettings(DynamoDbSettings dynamoDbSettings); /** *

* Settings in JSON format for the target Amazon DynamoDB endpoint. For information about other available * settings, see Using Object Mapping to Migrate Data to DynamoDB in the Database Migration Service User Guide. *

* This is a convenience method 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()); } /** *

* Settings in JSON format for the target Amazon S3 endpoint. For more information about the available settings, * see Extra * Connection Attributes When Using Amazon S3 as a Target for DMS in the Database Migration Service User * Guide. *

* * @param s3Settings * Settings in JSON format for the target Amazon S3 endpoint. For more information about the available * settings, see Extra Connection Attributes When Using Amazon S3 as a Target for DMS in the Database Migration * Service User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder s3Settings(S3Settings s3Settings); /** *

* Settings in JSON format for the target Amazon S3 endpoint. For more information about the available settings, * see Extra * Connection Attributes When Using Amazon S3 as a Target for DMS in the Database Migration Service User * Guide. *

* This is a convenience method 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 Amazon Resource Name (ARN) used by the service access IAM role. The * role must allow the iam:PassRole action. *

    *
  • *
  • *

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

    *
  • *
*

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

*

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

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

*

* Possible settings include the following: *

*
    *
  • *

    * ServiceAccessRoleArn - The Amazon Resource Name (ARN) used by the service access IAM * role. The role must allow the iam:PassRole action. *

    *
  • *
  • *

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

    *
  • *
*

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

*

* JSON syntax for these settings is as follows: * { "ServiceAccessRoleArn": "string", "BucketName": "string", } * @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 Amazon Resource Name (ARN) used by the service access IAM role. The * role must allow the iam:PassRole action. *

    *
  • *
  • *

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

    *
  • *
*

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

*

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

* This is a convenience method 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()); } /** *

* Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, * see Endpoint configuration settings when using MongoDB as a source for Database Migration Service in the * Database Migration Service User Guide. *

* * @param mongoDbSettings * Settings in JSON format for the source MongoDB endpoint. For more information about the available * settings, see Endpoint configuration settings when using MongoDB as a source for Database Migration Service in * the Database Migration Service User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder mongoDbSettings(MongoDbSettings mongoDbSettings); /** *

* Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, * see Endpoint configuration settings when using MongoDB as a source for Database Migration Service in the * Database Migration Service User Guide. *

* This is a convenience method 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()); } /** *

* Settings in JSON format for the target endpoint for Amazon Kinesis Data Streams. For more information about * the available settings, see Using object mapping to migrate data to a Kinesis data stream in the Database Migration Service User * Guide. *

* * @param kinesisSettings * Settings in JSON format for the target endpoint for Amazon Kinesis Data Streams. For more information * about the available settings, see Using object mapping to migrate data to a Kinesis data stream in the Database Migration * Service User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder kinesisSettings(KinesisSettings kinesisSettings); /** *

* Settings in JSON format for the target endpoint for Amazon Kinesis Data Streams. For more information about * the available settings, see Using object mapping to migrate data to a Kinesis data stream in the Database Migration Service User * Guide. *

* This is a convenience method 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()); } /** *

* Settings in JSON format for the target Apache Kafka endpoint. For more information about the available * settings, see Using object mapping to migrate data to a Kafka topic in the Database Migration Service User * Guide. *

* * @param kafkaSettings * Settings in JSON format for the target Apache Kafka endpoint. For more information about the available * settings, see Using object mapping to migrate data to a Kafka topic in the Database Migration Service User * Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder kafkaSettings(KafkaSettings kafkaSettings); /** *

* Settings in JSON format for the target Apache Kafka endpoint. For more information about the available * settings, see Using object mapping to migrate data to a Kafka topic in the Database Migration Service User * Guide. *

* This is a convenience method 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()); } /** *

* Settings in JSON format for the target OpenSearch endpoint. For more information about the available * settings, see Extra Connection Attributes When Using OpenSearch as a Target for DMS in the Database Migration * Service User Guide. *

* * @param elasticsearchSettings * Settings in JSON format for the target OpenSearch endpoint. For more information about the available * settings, see Extra Connection Attributes When Using OpenSearch as a Target for DMS in the Database * Migration Service User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder elasticsearchSettings(ElasticsearchSettings elasticsearchSettings); /** *

* Settings in JSON format for the target OpenSearch endpoint. For more information about the available * settings, see Extra Connection Attributes When Using OpenSearch as a Target for DMS in the Database Migration * Service User Guide. *

* This is a convenience method 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()); } /** *

* Settings in JSON format for the target Amazon Neptune endpoint. For more information about the available * settings, see Specifying graph-mapping rules using Gremlin and R2RML for Amazon Neptune as a target in the Database * Migration Service User Guide. *

* * @param neptuneSettings * Settings in JSON format for the target Amazon Neptune endpoint. For more information about the * available settings, see Specifying graph-mapping rules using Gremlin and R2RML for Amazon Neptune as a target in the * Database Migration Service User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder neptuneSettings(NeptuneSettings neptuneSettings); /** *

* Settings in JSON format for the target Amazon Neptune endpoint. For more information about the available * settings, see Specifying graph-mapping rules using Gremlin and R2RML for Amazon Neptune as a target in the Database * Migration Service User Guide. *

* This is a convenience method 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()); } /** * Sets the value of the RedshiftSettings property for this object. * * @param redshiftSettings * The new value for the RedshiftSettings property for this object. * @return Returns a reference to this object so that method calls can be chained together. */ Builder redshiftSettings(RedshiftSettings redshiftSettings); /** * Sets the value of the RedshiftSettings property for this object. * * This is a convenience method 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()); } /** *

* Settings in JSON format for the source and target PostgreSQL endpoint. For information about other available * settings, see Extra connection attributes when using PostgreSQL as a source for DMS and Extra connection attributes when using PostgreSQL as a target for DMS in the Database Migration * Service User Guide. *

* * @param postgreSQLSettings * Settings in JSON format for the source and target PostgreSQL endpoint. For information about other * available settings, see Extra connection attributes when using PostgreSQL as a source for DMS and Extra connection attributes when using PostgreSQL as a target for DMS in the Database * Migration Service User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder postgreSQLSettings(PostgreSQLSettings postgreSQLSettings); /** *

* Settings in JSON format for the source and target PostgreSQL endpoint. For information about other available * settings, see Extra connection attributes when using PostgreSQL as a source for DMS and Extra connection attributes when using PostgreSQL as a target for DMS in the Database Migration * Service User Guide. *

* This is a convenience method 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()); } /** *

* Settings in JSON format for the source and target MySQL endpoint. For information about other available * settings, see Extra connection attributes when using MySQL as a source for DMS and Extra connection attributes when using a MySQL-compatible database as a target for DMS in the * Database Migration Service User Guide. *

* * @param mySQLSettings * Settings in JSON format for the source and target MySQL endpoint. For information about other * available settings, see Extra connection attributes when using MySQL as a source for DMS and Extra connection attributes when using a MySQL-compatible database as a target for DMS in the * Database Migration Service User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder mySQLSettings(MySQLSettings mySQLSettings); /** *

* Settings in JSON format for the source and target MySQL endpoint. For information about other available * settings, see Extra connection attributes when using MySQL as a source for DMS and Extra connection attributes when using a MySQL-compatible database as a target for DMS in the * Database Migration Service User Guide. *

* This is a convenience method 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()); } /** *

* Settings in JSON format for the source and target Oracle endpoint. For information about other available * settings, see Extra connection attributes when using Oracle as a source for DMS and Extra connection attributes when using Oracle as a target for DMS in the Database Migration Service * User Guide. *

* * @param oracleSettings * Settings in JSON format for the source and target Oracle endpoint. For information about other * available settings, see Extra connection attributes when using Oracle as a source for DMS and Extra connection attributes when using Oracle as a target for DMS in the Database Migration * Service User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder oracleSettings(OracleSettings oracleSettings); /** *

* Settings in JSON format for the source and target Oracle endpoint. For information about other available * settings, see Extra connection attributes when using Oracle as a source for DMS and Extra connection attributes when using Oracle as a target for DMS in the Database Migration Service * User Guide. *

* This is a convenience method 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()); } /** *

* Settings in JSON format for the source and target SAP ASE endpoint. For information about other available * settings, see Extra connection attributes when using SAP ASE as a source for DMS and Extra connection attributes when using SAP ASE as a target for DMS in the Database Migration Service * User Guide. *

* * @param sybaseSettings * Settings in JSON format for the source and target SAP ASE endpoint. For information about other * available settings, see Extra connection attributes when using SAP ASE as a source for DMS and Extra connection attributes when using SAP ASE as a target for DMS in the Database Migration * Service User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder sybaseSettings(SybaseSettings sybaseSettings); /** *

* Settings in JSON format for the source and target SAP ASE endpoint. For information about other available * settings, see Extra connection attributes when using SAP ASE as a source for DMS and Extra connection attributes when using SAP ASE as a target for DMS in the Database Migration Service * User Guide. *

* This is a convenience method 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()); } /** *

* Settings in JSON format for the source and target Microsoft SQL Server endpoint. For information about other * available settings, see Extra connection attributes when using SQL Server as a source for DMS and Extra connection attributes when using SQL Server as a target for DMS in the Database Migration * Service User Guide. *

* * @param microsoftSQLServerSettings * Settings in JSON format for the source and target Microsoft SQL Server endpoint. For information about * other available settings, see Extra connection attributes when using SQL Server as a source for DMS and Extra connection attributes when using SQL Server as a target for DMS in the Database * Migration Service User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder microsoftSQLServerSettings(MicrosoftSQLServerSettings microsoftSQLServerSettings); /** *

* Settings in JSON format for the source and target Microsoft SQL Server endpoint. For information about other * available settings, see Extra connection attributes when using SQL Server as a source for DMS and Extra connection attributes when using SQL Server as a target for DMS in the Database Migration * Service User Guide. *

* This is a convenience method 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()); } /** *

* Settings in JSON format for the source IBM Db2 LUW endpoint. For information about other available settings, * see Extra connection attributes when using Db2 LUW as a source for DMS in the Database Migration Service * User Guide. *

* * @param ibmDb2Settings * Settings in JSON format for the source IBM Db2 LUW endpoint. For information about other available * settings, see Extra connection attributes when using Db2 LUW as a source for DMS in the Database Migration * Service User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder ibmDb2Settings(IBMDb2Settings ibmDb2Settings); /** *

* Settings in JSON format for the source IBM Db2 LUW endpoint. For information about other available settings, * see Extra connection attributes when using Db2 LUW as a source for DMS in the Database Migration Service * User Guide. *

* This is a convenience method 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()); } /** *

* A friendly name for the resource identifier at the end of the EndpointArn response parameter * that is returned in the created Endpoint object. The value for this parameter can have up to 31 * characters. It can contain only ASCII letters, digits, and hyphen ('-'). Also, it can't end with a hyphen or * contain two consecutive hyphens, and can only begin with a letter, such as Example-App-ARN1. For * example, this value might result in the EndpointArn value * arn:aws:dms:eu-west-1:012345678901:rep:Example-App-ARN1. If you don't specify a * ResourceIdentifier value, DMS generates a default identifier value for the end of * EndpointArn. *

* * @param resourceIdentifier * A friendly name for the resource identifier at the end of the EndpointArn response * parameter that is returned in the created Endpoint object. The value for this parameter * can have up to 31 characters. It can contain only ASCII letters, digits, and hyphen ('-'). Also, it * can't end with a hyphen or contain two consecutive hyphens, and can only begin with a letter, such as * Example-App-ARN1. For example, this value might result in the EndpointArn * value arn:aws:dms:eu-west-1:012345678901:rep:Example-App-ARN1. If you don't specify a * ResourceIdentifier value, DMS generates a default identifier value for the end of * EndpointArn. * @return Returns a reference to this object so that method calls can be chained together. */ Builder resourceIdentifier(String resourceIdentifier); /** * 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 method 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()); } /** *

* Settings in JSON format for the target Redis endpoint. *

* * @param redisSettings * Settings in JSON format for the target Redis endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ Builder redisSettings(RedisSettings redisSettings); /** *

* Settings in JSON format for the target Redis endpoint. *

* This is a convenience method that creates an instance of the {@link RedisSettings.Builder} avoiding the need * to create one manually via {@link RedisSettings#builder()}. * *

* When the {@link Consumer} completes, {@link RedisSettings.Builder#build()} is called immediately and its * result is passed to {@link #redisSettings(RedisSettings)}. * * @param redisSettings * a consumer that will call methods on {@link RedisSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #redisSettings(RedisSettings) */ default Builder redisSettings(Consumer redisSettings) { return redisSettings(RedisSettings.builder().applyMutation(redisSettings).build()); } /** *

* Settings in JSON format for the source GCP MySQL endpoint. *

* * @param gcpMySQLSettings * Settings in JSON format for the source GCP MySQL endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ Builder gcpMySQLSettings(GcpMySQLSettings gcpMySQLSettings); /** *

* Settings in JSON format for the source GCP MySQL endpoint. *

* This is a convenience method that creates an instance of the {@link GcpMySQLSettings.Builder} avoiding the * need to create one manually via {@link GcpMySQLSettings#builder()}. * *

* When the {@link Consumer} completes, {@link GcpMySQLSettings.Builder#build()} is called immediately and its * result is passed to {@link #gcpMySQLSettings(GcpMySQLSettings)}. * * @param gcpMySQLSettings * a consumer that will call methods on {@link GcpMySQLSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #gcpMySQLSettings(GcpMySQLSettings) */ default Builder gcpMySQLSettings(Consumer gcpMySQLSettings) { return gcpMySQLSettings(GcpMySQLSettings.builder().applyMutation(gcpMySQLSettings).build()); } /** *

* Settings in JSON format for the target Amazon Timestream endpoint. *

* * @param timestreamSettings * Settings in JSON format for the target Amazon Timestream endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ Builder timestreamSettings(TimestreamSettings timestreamSettings); /** *

* Settings in JSON format for the target Amazon Timestream endpoint. *

* This is a convenience method that creates an instance of the {@link TimestreamSettings.Builder} avoiding the * need to create one manually via {@link TimestreamSettings#builder()}. * *

* When the {@link Consumer} completes, {@link TimestreamSettings.Builder#build()} is called immediately and its * result is passed to {@link #timestreamSettings(TimestreamSettings)}. * * @param timestreamSettings * a consumer that will call methods on {@link TimestreamSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #timestreamSettings(TimestreamSettings) */ default Builder timestreamSettings(Consumer timestreamSettings) { return timestreamSettings(TimestreamSettings.builder().applyMutation(timestreamSettings).build()); } @Override Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration); @Override Builder overrideConfiguration(Consumer builderConsumer); } static final class BuilderImpl extends DatabaseMigrationRequest.BuilderImpl implements Builder { private String endpointIdentifier; private String endpointType; private String engineName; private String username; private String password; private String serverName; private Integer port; private String databaseName; private String extraConnectionAttributes; private String kmsKeyId; private List tags = DefaultSdkAutoConstructList.getInstance(); private String certificateArn; private String sslMode; private String serviceAccessRoleArn; private String externalTableDefinition; 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 String resourceIdentifier; private DocDbSettings docDbSettings; private RedisSettings redisSettings; private GcpMySQLSettings gcpMySQLSettings; private TimestreamSettings timestreamSettings; private BuilderImpl() { } private BuilderImpl(CreateEndpointRequest model) { super(model); endpointIdentifier(model.endpointIdentifier); endpointType(model.endpointType); engineName(model.engineName); username(model.username); password(model.password); serverName(model.serverName); port(model.port); databaseName(model.databaseName); extraConnectionAttributes(model.extraConnectionAttributes); kmsKeyId(model.kmsKeyId); tags(model.tags); certificateArn(model.certificateArn); sslMode(model.sslMode); serviceAccessRoleArn(model.serviceAccessRoleArn); externalTableDefinition(model.externalTableDefinition); 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); resourceIdentifier(model.resourceIdentifier); docDbSettings(model.docDbSettings); redisSettings(model.redisSettings); gcpMySQLSettings(model.gcpMySQLSettings); timestreamSettings(model.timestreamSettings); } public final String getEndpointIdentifier() { return endpointIdentifier; } public final void setEndpointIdentifier(String endpointIdentifier) { this.endpointIdentifier = endpointIdentifier; } @Override public final Builder endpointIdentifier(String endpointIdentifier) { this.endpointIdentifier = endpointIdentifier; return this; } public final String getEndpointType() { return endpointType; } public final void setEndpointType(String endpointType) { this.endpointType = 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 String getEngineName() { return engineName; } public final void setEngineName(String engineName) { this.engineName = engineName; } @Override public final Builder engineName(String engineName) { this.engineName = engineName; return this; } public final String getUsername() { return username; } public final void setUsername(String username) { this.username = username; } @Override public final Builder username(String username) { this.username = username; return this; } public final String getPassword() { return password; } public final void setPassword(String password) { this.password = password; } @Override public final Builder password(String password) { this.password = password; return this; } public final String getServerName() { return serverName; } public final void setServerName(String serverName) { this.serverName = serverName; } @Override public final Builder serverName(String serverName) { this.serverName = serverName; return this; } public final Integer getPort() { return port; } public final void setPort(Integer port) { this.port = port; } @Override public final Builder port(Integer port) { this.port = port; return this; } public final String getDatabaseName() { return databaseName; } public final void setDatabaseName(String databaseName) { this.databaseName = databaseName; } @Override public final Builder databaseName(String databaseName) { this.databaseName = databaseName; return this; } public final String getExtraConnectionAttributes() { return extraConnectionAttributes; } public final void setExtraConnectionAttributes(String extraConnectionAttributes) { this.extraConnectionAttributes = extraConnectionAttributes; } @Override public final Builder extraConnectionAttributes(String extraConnectionAttributes) { this.extraConnectionAttributes = extraConnectionAttributes; return this; } public final String getKmsKeyId() { return kmsKeyId; } public final void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } @Override public final Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } public final List getTags() { List result = TagListCopier.copyToBuilder(this.tags); if (result instanceof SdkAutoConstructList) { return null; } return result; } public final void setTags(Collection tags) { this.tags = TagListCopier.copyFromBuilder(tags); } @Override public final Builder tags(Collection tags) { this.tags = TagListCopier.copy(tags); return this; } @Override @SafeVarargs public final Builder tags(Tag... tags) { tags(Arrays.asList(tags)); return this; } @Override @SafeVarargs public final Builder tags(Consumer... tags) { tags(Stream.of(tags).map(c -> Tag.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; } public final String getCertificateArn() { return certificateArn; } public final void setCertificateArn(String certificateArn) { this.certificateArn = certificateArn; } @Override public final Builder certificateArn(String certificateArn) { this.certificateArn = certificateArn; return this; } public final String getSslMode() { return sslMode; } public final void setSslMode(String sslMode) { this.sslMode = 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 String getServiceAccessRoleArn() { return serviceAccessRoleArn; } public final void setServiceAccessRoleArn(String serviceAccessRoleArn) { this.serviceAccessRoleArn = serviceAccessRoleArn; } @Override public final Builder serviceAccessRoleArn(String serviceAccessRoleArn) { this.serviceAccessRoleArn = serviceAccessRoleArn; return this; } public final String getExternalTableDefinition() { return externalTableDefinition; } public final void setExternalTableDefinition(String externalTableDefinition) { this.externalTableDefinition = externalTableDefinition; } @Override public final Builder externalTableDefinition(String externalTableDefinition) { this.externalTableDefinition = externalTableDefinition; return this; } public final DynamoDbSettings.Builder getDynamoDbSettings() { return dynamoDbSettings != null ? dynamoDbSettings.toBuilder() : null; } public final void setDynamoDbSettings(DynamoDbSettings.BuilderImpl dynamoDbSettings) { this.dynamoDbSettings = dynamoDbSettings != null ? dynamoDbSettings.build() : null; } @Override public final Builder dynamoDbSettings(DynamoDbSettings dynamoDbSettings) { this.dynamoDbSettings = dynamoDbSettings; return this; } public final S3Settings.Builder getS3Settings() { return s3Settings != null ? s3Settings.toBuilder() : null; } public final void setS3Settings(S3Settings.BuilderImpl s3Settings) { this.s3Settings = s3Settings != null ? s3Settings.build() : null; } @Override public final Builder s3Settings(S3Settings s3Settings) { this.s3Settings = s3Settings; return this; } public final DmsTransferSettings.Builder getDmsTransferSettings() { return dmsTransferSettings != null ? dmsTransferSettings.toBuilder() : null; } public final void setDmsTransferSettings(DmsTransferSettings.BuilderImpl dmsTransferSettings) { this.dmsTransferSettings = dmsTransferSettings != null ? dmsTransferSettings.build() : null; } @Override public final Builder dmsTransferSettings(DmsTransferSettings dmsTransferSettings) { this.dmsTransferSettings = dmsTransferSettings; return this; } public final MongoDbSettings.Builder getMongoDbSettings() { return mongoDbSettings != null ? mongoDbSettings.toBuilder() : null; } public final void setMongoDbSettings(MongoDbSettings.BuilderImpl mongoDbSettings) { this.mongoDbSettings = mongoDbSettings != null ? mongoDbSettings.build() : null; } @Override public final Builder mongoDbSettings(MongoDbSettings mongoDbSettings) { this.mongoDbSettings = mongoDbSettings; return this; } public final KinesisSettings.Builder getKinesisSettings() { return kinesisSettings != null ? kinesisSettings.toBuilder() : null; } public final void setKinesisSettings(KinesisSettings.BuilderImpl kinesisSettings) { this.kinesisSettings = kinesisSettings != null ? kinesisSettings.build() : null; } @Override public final Builder kinesisSettings(KinesisSettings kinesisSettings) { this.kinesisSettings = kinesisSettings; return this; } public final KafkaSettings.Builder getKafkaSettings() { return kafkaSettings != null ? kafkaSettings.toBuilder() : null; } public final void setKafkaSettings(KafkaSettings.BuilderImpl kafkaSettings) { this.kafkaSettings = kafkaSettings != null ? kafkaSettings.build() : null; } @Override public final Builder kafkaSettings(KafkaSettings kafkaSettings) { this.kafkaSettings = kafkaSettings; return this; } public final ElasticsearchSettings.Builder getElasticsearchSettings() { return elasticsearchSettings != null ? elasticsearchSettings.toBuilder() : null; } public final void setElasticsearchSettings(ElasticsearchSettings.BuilderImpl elasticsearchSettings) { this.elasticsearchSettings = elasticsearchSettings != null ? elasticsearchSettings.build() : null; } @Override public final Builder elasticsearchSettings(ElasticsearchSettings elasticsearchSettings) { this.elasticsearchSettings = elasticsearchSettings; return this; } public final NeptuneSettings.Builder getNeptuneSettings() { return neptuneSettings != null ? neptuneSettings.toBuilder() : null; } public final void setNeptuneSettings(NeptuneSettings.BuilderImpl neptuneSettings) { this.neptuneSettings = neptuneSettings != null ? neptuneSettings.build() : null; } @Override public final Builder neptuneSettings(NeptuneSettings neptuneSettings) { this.neptuneSettings = neptuneSettings; return this; } public final RedshiftSettings.Builder getRedshiftSettings() { return redshiftSettings != null ? redshiftSettings.toBuilder() : null; } public final void setRedshiftSettings(RedshiftSettings.BuilderImpl redshiftSettings) { this.redshiftSettings = redshiftSettings != null ? redshiftSettings.build() : null; } @Override public final Builder redshiftSettings(RedshiftSettings redshiftSettings) { this.redshiftSettings = redshiftSettings; return this; } public final PostgreSQLSettings.Builder getPostgreSQLSettings() { return postgreSQLSettings != null ? postgreSQLSettings.toBuilder() : null; } public final void setPostgreSQLSettings(PostgreSQLSettings.BuilderImpl postgreSQLSettings) { this.postgreSQLSettings = postgreSQLSettings != null ? postgreSQLSettings.build() : null; } @Override public final Builder postgreSQLSettings(PostgreSQLSettings postgreSQLSettings) { this.postgreSQLSettings = postgreSQLSettings; return this; } public final MySQLSettings.Builder getMySQLSettings() { return mySQLSettings != null ? mySQLSettings.toBuilder() : null; } public final void setMySQLSettings(MySQLSettings.BuilderImpl mySQLSettings) { this.mySQLSettings = mySQLSettings != null ? mySQLSettings.build() : null; } @Override public final Builder mySQLSettings(MySQLSettings mySQLSettings) { this.mySQLSettings = mySQLSettings; return this; } public final OracleSettings.Builder getOracleSettings() { return oracleSettings != null ? oracleSettings.toBuilder() : null; } public final void setOracleSettings(OracleSettings.BuilderImpl oracleSettings) { this.oracleSettings = oracleSettings != null ? oracleSettings.build() : null; } @Override public final Builder oracleSettings(OracleSettings oracleSettings) { this.oracleSettings = oracleSettings; return this; } public final SybaseSettings.Builder getSybaseSettings() { return sybaseSettings != null ? sybaseSettings.toBuilder() : null; } public final void setSybaseSettings(SybaseSettings.BuilderImpl sybaseSettings) { this.sybaseSettings = sybaseSettings != null ? sybaseSettings.build() : null; } @Override public final Builder sybaseSettings(SybaseSettings sybaseSettings) { this.sybaseSettings = sybaseSettings; return this; } public final MicrosoftSQLServerSettings.Builder getMicrosoftSQLServerSettings() { return microsoftSQLServerSettings != null ? microsoftSQLServerSettings.toBuilder() : null; } public final void setMicrosoftSQLServerSettings(MicrosoftSQLServerSettings.BuilderImpl microsoftSQLServerSettings) { this.microsoftSQLServerSettings = microsoftSQLServerSettings != null ? microsoftSQLServerSettings.build() : null; } @Override public final Builder microsoftSQLServerSettings(MicrosoftSQLServerSettings microsoftSQLServerSettings) { this.microsoftSQLServerSettings = microsoftSQLServerSettings; return this; } public final IBMDb2Settings.Builder getIbmDb2Settings() { return ibmDb2Settings != null ? ibmDb2Settings.toBuilder() : null; } public final void setIbmDb2Settings(IBMDb2Settings.BuilderImpl ibmDb2Settings) { this.ibmDb2Settings = ibmDb2Settings != null ? ibmDb2Settings.build() : null; } @Override public final Builder ibmDb2Settings(IBMDb2Settings ibmDb2Settings) { this.ibmDb2Settings = ibmDb2Settings; return this; } public final String getResourceIdentifier() { return resourceIdentifier; } public final void setResourceIdentifier(String resourceIdentifier) { this.resourceIdentifier = resourceIdentifier; } @Override public final Builder resourceIdentifier(String resourceIdentifier) { this.resourceIdentifier = resourceIdentifier; return this; } public final DocDbSettings.Builder getDocDbSettings() { return docDbSettings != null ? docDbSettings.toBuilder() : null; } public final void setDocDbSettings(DocDbSettings.BuilderImpl docDbSettings) { this.docDbSettings = docDbSettings != null ? docDbSettings.build() : null; } @Override public final Builder docDbSettings(DocDbSettings docDbSettings) { this.docDbSettings = docDbSettings; return this; } public final RedisSettings.Builder getRedisSettings() { return redisSettings != null ? redisSettings.toBuilder() : null; } public final void setRedisSettings(RedisSettings.BuilderImpl redisSettings) { this.redisSettings = redisSettings != null ? redisSettings.build() : null; } @Override public final Builder redisSettings(RedisSettings redisSettings) { this.redisSettings = redisSettings; return this; } public final GcpMySQLSettings.Builder getGcpMySQLSettings() { return gcpMySQLSettings != null ? gcpMySQLSettings.toBuilder() : null; } public final void setGcpMySQLSettings(GcpMySQLSettings.BuilderImpl gcpMySQLSettings) { this.gcpMySQLSettings = gcpMySQLSettings != null ? gcpMySQLSettings.build() : null; } @Override public final Builder gcpMySQLSettings(GcpMySQLSettings gcpMySQLSettings) { this.gcpMySQLSettings = gcpMySQLSettings; return this; } public final TimestreamSettings.Builder getTimestreamSettings() { return timestreamSettings != null ? timestreamSettings.toBuilder() : null; } public final void setTimestreamSettings(TimestreamSettings.BuilderImpl timestreamSettings) { this.timestreamSettings = timestreamSettings != null ? timestreamSettings.build() : null; } @Override public final Builder timestreamSettings(TimestreamSettings timestreamSettings) { this.timestreamSettings = timestreamSettings; return this; } @Override public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) { super.overrideConfiguration(overrideConfiguration); return this; } @Override public Builder overrideConfiguration(Consumer builderConsumer) { super.overrideConfiguration(builderConsumer); return this; } @Override public CreateEndpointRequest build() { return new CreateEndpointRequest(this); } @Override public List> sdkFields() { return SDK_FIELDS; } @Override public Map> sdkFieldNameToField() { return SDK_NAME_TO_FIELD; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy