com.amazonaws.services.databasemigrationservice.model.transform.OracleSettingsJsonUnmarshaller Maven / Gradle / Ivy
/*
* 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 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.*;
/**
* OracleSettings JSON Unmarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class OracleSettingsJsonUnmarshaller implements Unmarshaller {
public OracleSettings unmarshall(JsonUnmarshallerContext context) throws Exception {
OracleSettings oracleSettings = new OracleSettings();
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("AddSupplementalLogging", targetDepth)) {
context.nextToken();
oracleSettings.setAddSupplementalLogging(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("ArchivedLogDestId", targetDepth)) {
context.nextToken();
oracleSettings.setArchivedLogDestId(context.getUnmarshaller(Integer.class).unmarshall(context));
}
if (context.testExpression("AdditionalArchivedLogDestId", targetDepth)) {
context.nextToken();
oracleSettings.setAdditionalArchivedLogDestId(context.getUnmarshaller(Integer.class).unmarshall(context));
}
if (context.testExpression("ExtraArchivedLogDestIds", targetDepth)) {
context.nextToken();
oracleSettings.setExtraArchivedLogDestIds(new ListUnmarshaller(context.getUnmarshaller(Integer.class))
.unmarshall(context));
}
if (context.testExpression("AllowSelectNestedTables", targetDepth)) {
context.nextToken();
oracleSettings.setAllowSelectNestedTables(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("ParallelAsmReadThreads", targetDepth)) {
context.nextToken();
oracleSettings.setParallelAsmReadThreads(context.getUnmarshaller(Integer.class).unmarshall(context));
}
if (context.testExpression("ReadAheadBlocks", targetDepth)) {
context.nextToken();
oracleSettings.setReadAheadBlocks(context.getUnmarshaller(Integer.class).unmarshall(context));
}
if (context.testExpression("AccessAlternateDirectly", targetDepth)) {
context.nextToken();
oracleSettings.setAccessAlternateDirectly(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("UseAlternateFolderForOnline", targetDepth)) {
context.nextToken();
oracleSettings.setUseAlternateFolderForOnline(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("OraclePathPrefix", targetDepth)) {
context.nextToken();
oracleSettings.setOraclePathPrefix(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("UsePathPrefix", targetDepth)) {
context.nextToken();
oracleSettings.setUsePathPrefix(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("ReplacePathPrefix", targetDepth)) {
context.nextToken();
oracleSettings.setReplacePathPrefix(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("EnableHomogenousTablespace", targetDepth)) {
context.nextToken();
oracleSettings.setEnableHomogenousTablespace(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("DirectPathNoLog", targetDepth)) {
context.nextToken();
oracleSettings.setDirectPathNoLog(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("ArchivedLogsOnly", targetDepth)) {
context.nextToken();
oracleSettings.setArchivedLogsOnly(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("AsmPassword", targetDepth)) {
context.nextToken();
oracleSettings.setAsmPassword(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("AsmServer", targetDepth)) {
context.nextToken();
oracleSettings.setAsmServer(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("AsmUser", targetDepth)) {
context.nextToken();
oracleSettings.setAsmUser(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("CharLengthSemantics", targetDepth)) {
context.nextToken();
oracleSettings.setCharLengthSemantics(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("DatabaseName", targetDepth)) {
context.nextToken();
oracleSettings.setDatabaseName(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("DirectPathParallelLoad", targetDepth)) {
context.nextToken();
oracleSettings.setDirectPathParallelLoad(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("FailTasksOnLobTruncation", targetDepth)) {
context.nextToken();
oracleSettings.setFailTasksOnLobTruncation(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("NumberDatatypeScale", targetDepth)) {
context.nextToken();
oracleSettings.setNumberDatatypeScale(context.getUnmarshaller(Integer.class).unmarshall(context));
}
if (context.testExpression("Password", targetDepth)) {
context.nextToken();
oracleSettings.setPassword(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("Port", targetDepth)) {
context.nextToken();
oracleSettings.setPort(context.getUnmarshaller(Integer.class).unmarshall(context));
}
if (context.testExpression("ReadTableSpaceName", targetDepth)) {
context.nextToken();
oracleSettings.setReadTableSpaceName(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("RetryInterval", targetDepth)) {
context.nextToken();
oracleSettings.setRetryInterval(context.getUnmarshaller(Integer.class).unmarshall(context));
}
if (context.testExpression("SecurityDbEncryption", targetDepth)) {
context.nextToken();
oracleSettings.setSecurityDbEncryption(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("SecurityDbEncryptionName", targetDepth)) {
context.nextToken();
oracleSettings.setSecurityDbEncryptionName(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("ServerName", targetDepth)) {
context.nextToken();
oracleSettings.setServerName(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("SpatialDataOptionToGeoJsonFunctionName", targetDepth)) {
context.nextToken();
oracleSettings.setSpatialDataOptionToGeoJsonFunctionName(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("StandbyDelayTime", targetDepth)) {
context.nextToken();
oracleSettings.setStandbyDelayTime(context.getUnmarshaller(Integer.class).unmarshall(context));
}
if (context.testExpression("Username", targetDepth)) {
context.nextToken();
oracleSettings.setUsername(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("UseBFile", targetDepth)) {
context.nextToken();
oracleSettings.setUseBFile(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("UseDirectPathFullLoad", targetDepth)) {
context.nextToken();
oracleSettings.setUseDirectPathFullLoad(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("UseLogminerReader", targetDepth)) {
context.nextToken();
oracleSettings.setUseLogminerReader(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("SecretsManagerAccessRoleArn", targetDepth)) {
context.nextToken();
oracleSettings.setSecretsManagerAccessRoleArn(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("SecretsManagerSecretId", targetDepth)) {
context.nextToken();
oracleSettings.setSecretsManagerSecretId(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("SecretsManagerOracleAsmAccessRoleArn", targetDepth)) {
context.nextToken();
oracleSettings.setSecretsManagerOracleAsmAccessRoleArn(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("SecretsManagerOracleAsmSecretId", targetDepth)) {
context.nextToken();
oracleSettings.setSecretsManagerOracleAsmSecretId(context.getUnmarshaller(String.class).unmarshall(context));
}
if (context.testExpression("TrimSpaceInChar", targetDepth)) {
context.nextToken();
oracleSettings.setTrimSpaceInChar(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("ConvertTimestampWithZoneToUTC", targetDepth)) {
context.nextToken();
oracleSettings.setConvertTimestampWithZoneToUTC(context.getUnmarshaller(Boolean.class).unmarshall(context));
}
if (context.testExpression("OpenTransactionWindow", targetDepth)) {
context.nextToken();
oracleSettings.setOpenTransactionWindow(context.getUnmarshaller(Integer.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 oracleSettings;
}
private static OracleSettingsJsonUnmarshaller instance;
public static OracleSettingsJsonUnmarshaller getInstance() {
if (instance == null)
instance = new OracleSettingsJsonUnmarshaller();
return instance;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy