com.amazonaws.services.databasemigrationservice.model.transform.RedshiftSettingsMarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-dms Show documentation
Show all versions of aws-java-sdk-dms Show documentation
The AWS Java SDK for AWS Database Migration Service module holds the client classes that are used for communicating with AWS Database Migration Service.
The newest version!
/*
* Copyright 2019-2024 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 com.amazonaws.services.databasemigrationservice.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.databasemigrationservice.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* RedshiftSettingsMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class RedshiftSettingsMarshaller {
private static final MarshallingInfo ACCEPTANYDATE_BINDING = MarshallingInfo.builder(MarshallingType.BOOLEAN)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("AcceptAnyDate").build();
private static final MarshallingInfo AFTERCONNECTSCRIPT_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("AfterConnectScript").build();
private static final MarshallingInfo BUCKETFOLDER_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("BucketFolder").build();
private static final MarshallingInfo BUCKETNAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("BucketName").build();
private static final MarshallingInfo CASESENSITIVENAMES_BINDING = MarshallingInfo.builder(MarshallingType.BOOLEAN)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("CaseSensitiveNames").build();
private static final MarshallingInfo COMPUPDATE_BINDING = MarshallingInfo.builder(MarshallingType.BOOLEAN)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("CompUpdate").build();
private static final MarshallingInfo CONNECTIONTIMEOUT_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ConnectionTimeout").build();
private static final MarshallingInfo DATABASENAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("DatabaseName").build();
private static final MarshallingInfo DATEFORMAT_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("DateFormat").build();
private static final MarshallingInfo EMPTYASNULL_BINDING = MarshallingInfo.builder(MarshallingType.BOOLEAN)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("EmptyAsNull").build();
private static final MarshallingInfo ENCRYPTIONMODE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("EncryptionMode").build();
private static final MarshallingInfo EXPLICITIDS_BINDING = MarshallingInfo.builder(MarshallingType.BOOLEAN)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ExplicitIds").build();
private static final MarshallingInfo FILETRANSFERUPLOADSTREAMS_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("FileTransferUploadStreams").build();
private static final MarshallingInfo LOADTIMEOUT_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("LoadTimeout").build();
private static final MarshallingInfo MAXFILESIZE_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("MaxFileSize").build();
private static final MarshallingInfo PASSWORD_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("Password").build();
private static final MarshallingInfo PORT_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("Port").build();
private static final MarshallingInfo REMOVEQUOTES_BINDING = MarshallingInfo.builder(MarshallingType.BOOLEAN)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("RemoveQuotes").build();
private static final MarshallingInfo REPLACEINVALIDCHARS_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ReplaceInvalidChars").build();
private static final MarshallingInfo REPLACECHARS_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ReplaceChars").build();
private static final MarshallingInfo SERVERNAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ServerName").build();
private static final MarshallingInfo SERVICEACCESSROLEARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ServiceAccessRoleArn").build();
private static final MarshallingInfo SERVERSIDEENCRYPTIONKMSKEYID_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ServerSideEncryptionKmsKeyId").build();
private static final MarshallingInfo TIMEFORMAT_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("TimeFormat").build();
private static final MarshallingInfo TRIMBLANKS_BINDING = MarshallingInfo.builder(MarshallingType.BOOLEAN)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("TrimBlanks").build();
private static final MarshallingInfo TRUNCATECOLUMNS_BINDING = MarshallingInfo.builder(MarshallingType.BOOLEAN)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("TruncateColumns").build();
private static final MarshallingInfo USERNAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("Username").build();
private static final MarshallingInfo WRITEBUFFERSIZE_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("WriteBufferSize").build();
private static final MarshallingInfo SECRETSMANAGERACCESSROLEARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("SecretsManagerAccessRoleArn").build();
private static final MarshallingInfo SECRETSMANAGERSECRETID_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("SecretsManagerSecretId").build();
private static final MarshallingInfo MAPBOOLEANASBOOLEAN_BINDING = MarshallingInfo.builder(MarshallingType.BOOLEAN)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("MapBooleanAsBoolean").build();
private static final RedshiftSettingsMarshaller instance = new RedshiftSettingsMarshaller();
public static RedshiftSettingsMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(RedshiftSettings redshiftSettings, ProtocolMarshaller protocolMarshaller) {
if (redshiftSettings == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(redshiftSettings.getAcceptAnyDate(), ACCEPTANYDATE_BINDING);
protocolMarshaller.marshall(redshiftSettings.getAfterConnectScript(), AFTERCONNECTSCRIPT_BINDING);
protocolMarshaller.marshall(redshiftSettings.getBucketFolder(), BUCKETFOLDER_BINDING);
protocolMarshaller.marshall(redshiftSettings.getBucketName(), BUCKETNAME_BINDING);
protocolMarshaller.marshall(redshiftSettings.getCaseSensitiveNames(), CASESENSITIVENAMES_BINDING);
protocolMarshaller.marshall(redshiftSettings.getCompUpdate(), COMPUPDATE_BINDING);
protocolMarshaller.marshall(redshiftSettings.getConnectionTimeout(), CONNECTIONTIMEOUT_BINDING);
protocolMarshaller.marshall(redshiftSettings.getDatabaseName(), DATABASENAME_BINDING);
protocolMarshaller.marshall(redshiftSettings.getDateFormat(), DATEFORMAT_BINDING);
protocolMarshaller.marshall(redshiftSettings.getEmptyAsNull(), EMPTYASNULL_BINDING);
protocolMarshaller.marshall(redshiftSettings.getEncryptionMode(), ENCRYPTIONMODE_BINDING);
protocolMarshaller.marshall(redshiftSettings.getExplicitIds(), EXPLICITIDS_BINDING);
protocolMarshaller.marshall(redshiftSettings.getFileTransferUploadStreams(), FILETRANSFERUPLOADSTREAMS_BINDING);
protocolMarshaller.marshall(redshiftSettings.getLoadTimeout(), LOADTIMEOUT_BINDING);
protocolMarshaller.marshall(redshiftSettings.getMaxFileSize(), MAXFILESIZE_BINDING);
protocolMarshaller.marshall(redshiftSettings.getPassword(), PASSWORD_BINDING);
protocolMarshaller.marshall(redshiftSettings.getPort(), PORT_BINDING);
protocolMarshaller.marshall(redshiftSettings.getRemoveQuotes(), REMOVEQUOTES_BINDING);
protocolMarshaller.marshall(redshiftSettings.getReplaceInvalidChars(), REPLACEINVALIDCHARS_BINDING);
protocolMarshaller.marshall(redshiftSettings.getReplaceChars(), REPLACECHARS_BINDING);
protocolMarshaller.marshall(redshiftSettings.getServerName(), SERVERNAME_BINDING);
protocolMarshaller.marshall(redshiftSettings.getServiceAccessRoleArn(), SERVICEACCESSROLEARN_BINDING);
protocolMarshaller.marshall(redshiftSettings.getServerSideEncryptionKmsKeyId(), SERVERSIDEENCRYPTIONKMSKEYID_BINDING);
protocolMarshaller.marshall(redshiftSettings.getTimeFormat(), TIMEFORMAT_BINDING);
protocolMarshaller.marshall(redshiftSettings.getTrimBlanks(), TRIMBLANKS_BINDING);
protocolMarshaller.marshall(redshiftSettings.getTruncateColumns(), TRUNCATECOLUMNS_BINDING);
protocolMarshaller.marshall(redshiftSettings.getUsername(), USERNAME_BINDING);
protocolMarshaller.marshall(redshiftSettings.getWriteBufferSize(), WRITEBUFFERSIZE_BINDING);
protocolMarshaller.marshall(redshiftSettings.getSecretsManagerAccessRoleArn(), SECRETSMANAGERACCESSROLEARN_BINDING);
protocolMarshaller.marshall(redshiftSettings.getSecretsManagerSecretId(), SECRETSMANAGERSECRETID_BINDING);
protocolMarshaller.marshall(redshiftSettings.getMapBooleanAsBoolean(), MAPBOOLEANASBOOLEAN_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy