com.amazonaws.services.databasemigrationservice.model.transform.S3SettingsJsonUnmarshaller 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.
/*
* Copyright 2017-2022 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 java.math.*;
import javax.annotation.Generated;
import com.amazonaws.services.databasemigrationservice.model.*;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
import com.amazonaws.transform.*;
import com.fasterxml.jackson.core.JsonToken;
import static com.fasterxml.jackson.core.JsonToken.*;
/**
* S3Settings JSON Unmarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class S3SettingsJsonUnmarshaller implements Unmarshaller {
public S3Settings unmarshall(JsonUnmarshallerContext context) throws Exception {
S3Settings s3Settings = new S3Settings();
int originalDepth = context.getCurrentDepth();
String currentParentElement = context.getCurrentParentElement();
int targetDepth = originalDepth + 1;
JsonToken token = context.getCurrentToken();
if (token == null)
token = context.nextToken();
if (token == VALUE_NULL) {
return null;
}
while (true) {
if (token == null)
break;
if (token == FIELD_NAME || token == START_OBJECT) {
if (context.testExpression("ServiceAccessRoleArn", targetDepth)) {
context.nextToken();
s3Settings.setServiceAccessRoleArn(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("ExternalTableDefinition", targetDepth)) {
context.nextToken();
s3Settings.setExternalTableDefinition(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("CsvRowDelimiter", targetDepth)) {
context.nextToken();
s3Settings.setCsvRowDelimiter(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("CsvDelimiter", targetDepth)) {
context.nextToken();
s3Settings.setCsvDelimiter(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("BucketFolder", targetDepth)) {
context.nextToken();
s3Settings.setBucketFolder(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("BucketName", targetDepth)) {
context.nextToken();
s3Settings.setBucketName(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("CompressionType", targetDepth)) {
context.nextToken();
s3Settings.setCompressionType(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("EncryptionMode", targetDepth)) {
context.nextToken();
s3Settings.setEncryptionMode(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("ServerSideEncryptionKmsKeyId", targetDepth)) {
context.nextToken();
s3Settings.setServerSideEncryptionKmsKeyId(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("DataFormat", targetDepth)) {
context.nextToken();
s3Settings.setDataFormat(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("EncodingType", targetDepth)) {
context.nextToken();
s3Settings.setEncodingType(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("DictPageSizeLimit", targetDepth)) {
context.nextToken();
s3Settings.setDictPageSizeLimit(context.getUnmarshaller(Integer.class).unmarshall(context));
}
if (context.testExpression("RowGroupLength", targetDepth)) {
context.nextToken();
s3Settings.setRowGroupLength(context.getUnmarshaller(Integer.class).unmarshall(context));
}
if (context.testExpression("DataPageSize", targetDepth)) {
context.nextToken();
s3Settings.setDataPageSize(context.getUnmarshaller(Integer.class).unmarshall(context));
}
if (context.testExpression("ParquetVersion", targetDepth)) {
context.nextToken();
s3Settings.setParquetVersion(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("EnableStatistics", targetDepth)) {
context.nextToken();
s3Settings.setEnableStatistics(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("IncludeOpForFullLoad", targetDepth)) {
context.nextToken();
s3Settings.setIncludeOpForFullLoad(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("CdcInsertsOnly", targetDepth)) {
context.nextToken();
s3Settings.setCdcInsertsOnly(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("TimestampColumnName", targetDepth)) {
context.nextToken();
s3Settings.setTimestampColumnName(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("ParquetTimestampInMillisecond", targetDepth)) {
context.nextToken();
s3Settings.setParquetTimestampInMillisecond(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("CdcInsertsAndUpdates", targetDepth)) {
context.nextToken();
s3Settings.setCdcInsertsAndUpdates(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("DatePartitionEnabled", targetDepth)) {
context.nextToken();
s3Settings.setDatePartitionEnabled(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("DatePartitionSequence", targetDepth)) {
context.nextToken();
s3Settings.setDatePartitionSequence(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("DatePartitionDelimiter", targetDepth)) {
context.nextToken();
s3Settings.setDatePartitionDelimiter(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("UseCsvNoSupValue", targetDepth)) {
context.nextToken();
s3Settings.setUseCsvNoSupValue(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("CsvNoSupValue", targetDepth)) {
context.nextToken();
s3Settings.setCsvNoSupValue(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("PreserveTransactions", targetDepth)) {
context.nextToken();
s3Settings.setPreserveTransactions(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("CdcPath", targetDepth)) {
context.nextToken();
s3Settings.setCdcPath(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("UseTaskStartTimeForFullLoadTimestamp", targetDepth)) {
context.nextToken();
s3Settings.setUseTaskStartTimeForFullLoadTimestamp(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("CannedAclForObjects", targetDepth)) {
context.nextToken();
s3Settings.setCannedAclForObjects(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("AddColumnName", targetDepth)) {
context.nextToken();
s3Settings.setAddColumnName(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("CdcMaxBatchInterval", targetDepth)) {
context.nextToken();
s3Settings.setCdcMaxBatchInterval(context.getUnmarshaller(Integer.class).unmarshall(context));
}
if (context.testExpression("CdcMinFileSize", targetDepth)) {
context.nextToken();
s3Settings.setCdcMinFileSize(context.getUnmarshaller(Integer.class).unmarshall(context));
}
if (context.testExpression("CsvNullValue", targetDepth)) {
context.nextToken();
s3Settings.setCsvNullValue(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("IgnoreHeaderRows", targetDepth)) {
context.nextToken();
s3Settings.setIgnoreHeaderRows(context.getUnmarshaller(Integer.class).unmarshall(context));
}
if (context.testExpression("MaxFileSize", targetDepth)) {
context.nextToken();
s3Settings.setMaxFileSize(context.getUnmarshaller(Integer.class).unmarshall(context));
}
if (context.testExpression("Rfc4180", targetDepth)) {
context.nextToken();
s3Settings.setRfc4180(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("DatePartitionTimezone", targetDepth)) {
context.nextToken();
s3Settings.setDatePartitionTimezone(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("AddTrailingPaddingCharacter", targetDepth)) {
context.nextToken();
s3Settings.setAddTrailingPaddingCharacter(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("ExpectedBucketOwner", targetDepth)) {
context.nextToken();
s3Settings.setExpectedBucketOwner(context.getUnmarshaller(String.class).unmarshall(context));
}
} else if (token == END_ARRAY || token == END_OBJECT) {
if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
if (context.getCurrentDepth() <= originalDepth)
break;
}
}
token = context.nextToken();
}
return s3Settings;
}
private static S3SettingsJsonUnmarshaller instance;
public static S3SettingsJsonUnmarshaller getInstance() {
if (instance == null)
instance = new S3SettingsJsonUnmarshaller();
return instance;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy