
com.amazonaws.services.comprehend.model.transform.EntityRecognizerPropertiesMarshaller Maven / Gradle / Ivy
/*
* 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.comprehend.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.comprehend.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* EntityRecognizerPropertiesMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class EntityRecognizerPropertiesMarshaller {
private static final MarshallingInfo ENTITYRECOGNIZERARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("EntityRecognizerArn").build();
private static final MarshallingInfo LANGUAGECODE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("LanguageCode").build();
private static final MarshallingInfo STATUS_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("Status").build();
private static final MarshallingInfo MESSAGE_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("Message").build();
private static final MarshallingInfo SUBMITTIME_BINDING = MarshallingInfo.builder(MarshallingType.DATE)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("SubmitTime").timestampFormat("unixTimestamp").build();
private static final MarshallingInfo ENDTIME_BINDING = MarshallingInfo.builder(MarshallingType.DATE)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("EndTime").timestampFormat("unixTimestamp").build();
private static final MarshallingInfo TRAININGSTARTTIME_BINDING = MarshallingInfo.builder(MarshallingType.DATE)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("TrainingStartTime").timestampFormat("unixTimestamp").build();
private static final MarshallingInfo TRAININGENDTIME_BINDING = MarshallingInfo.builder(MarshallingType.DATE)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("TrainingEndTime").timestampFormat("unixTimestamp").build();
private static final MarshallingInfo INPUTDATACONFIG_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("InputDataConfig").build();
private static final MarshallingInfo RECOGNIZERMETADATA_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("RecognizerMetadata").build();
private static final MarshallingInfo DATAACCESSROLEARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("DataAccessRoleArn").build();
private static final MarshallingInfo VOLUMEKMSKEYID_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("VolumeKmsKeyId").build();
private static final MarshallingInfo VPCCONFIG_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("VpcConfig").build();
private static final MarshallingInfo MODELKMSKEYID_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ModelKmsKeyId").build();
private static final MarshallingInfo VERSIONNAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("VersionName").build();
private static final MarshallingInfo SOURCEMODELARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("SourceModelArn").build();
private static final EntityRecognizerPropertiesMarshaller instance = new EntityRecognizerPropertiesMarshaller();
public static EntityRecognizerPropertiesMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(EntityRecognizerProperties entityRecognizerProperties, ProtocolMarshaller protocolMarshaller) {
if (entityRecognizerProperties == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(entityRecognizerProperties.getEntityRecognizerArn(), ENTITYRECOGNIZERARN_BINDING);
protocolMarshaller.marshall(entityRecognizerProperties.getLanguageCode(), LANGUAGECODE_BINDING);
protocolMarshaller.marshall(entityRecognizerProperties.getStatus(), STATUS_BINDING);
protocolMarshaller.marshall(entityRecognizerProperties.getMessage(), MESSAGE_BINDING);
protocolMarshaller.marshall(entityRecognizerProperties.getSubmitTime(), SUBMITTIME_BINDING);
protocolMarshaller.marshall(entityRecognizerProperties.getEndTime(), ENDTIME_BINDING);
protocolMarshaller.marshall(entityRecognizerProperties.getTrainingStartTime(), TRAININGSTARTTIME_BINDING);
protocolMarshaller.marshall(entityRecognizerProperties.getTrainingEndTime(), TRAININGENDTIME_BINDING);
protocolMarshaller.marshall(entityRecognizerProperties.getInputDataConfig(), INPUTDATACONFIG_BINDING);
protocolMarshaller.marshall(entityRecognizerProperties.getRecognizerMetadata(), RECOGNIZERMETADATA_BINDING);
protocolMarshaller.marshall(entityRecognizerProperties.getDataAccessRoleArn(), DATAACCESSROLEARN_BINDING);
protocolMarshaller.marshall(entityRecognizerProperties.getVolumeKmsKeyId(), VOLUMEKMSKEYID_BINDING);
protocolMarshaller.marshall(entityRecognizerProperties.getVpcConfig(), VPCCONFIG_BINDING);
protocolMarshaller.marshall(entityRecognizerProperties.getModelKmsKeyId(), MODELKMSKEYID_BINDING);
protocolMarshaller.marshall(entityRecognizerProperties.getVersionName(), VERSIONNAME_BINDING);
protocolMarshaller.marshall(entityRecognizerProperties.getSourceModelArn(), SOURCEMODELARN_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy