
com.amazonaws.services.rekognition.model.transform.ProjectVersionDescriptionMarshaller 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.rekognition.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.rekognition.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* ProjectVersionDescriptionMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class ProjectVersionDescriptionMarshaller {
private static final MarshallingInfo PROJECTVERSIONARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ProjectVersionArn").build();
private static final MarshallingInfo CREATIONTIMESTAMP_BINDING = MarshallingInfo.builder(MarshallingType.DATE)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("CreationTimestamp").timestampFormat("unixTimestamp").build();
private static final MarshallingInfo MININFERENCEUNITS_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("MinInferenceUnits").build();
private static final MarshallingInfo STATUS_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("Status").build();
private static final MarshallingInfo STATUSMESSAGE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("StatusMessage").build();
private static final MarshallingInfo BILLABLETRAININGTIMEINSECONDS_BINDING = MarshallingInfo.builder(MarshallingType.LONG)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("BillableTrainingTimeInSeconds").build();
private static final MarshallingInfo TRAININGENDTIMESTAMP_BINDING = MarshallingInfo.builder(MarshallingType.DATE)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("TrainingEndTimestamp").timestampFormat("unixTimestamp").build();
private static final MarshallingInfo OUTPUTCONFIG_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("OutputConfig").build();
private static final MarshallingInfo TRAININGDATARESULT_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("TrainingDataResult").build();
private static final MarshallingInfo TESTINGDATARESULT_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("TestingDataResult").build();
private static final MarshallingInfo EVALUATIONRESULT_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("EvaluationResult").build();
private static final MarshallingInfo MANIFESTSUMMARY_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ManifestSummary").build();
private static final MarshallingInfo KMSKEYID_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("KmsKeyId").build();
private static final MarshallingInfo MAXINFERENCEUNITS_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("MaxInferenceUnits").build();
private static final MarshallingInfo SOURCEPROJECTVERSIONARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("SourceProjectVersionArn").build();
private static final MarshallingInfo VERSIONDESCRIPTION_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("VersionDescription").build();
private static final MarshallingInfo FEATURE_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("Feature").build();
private static final MarshallingInfo BASEMODELVERSION_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("BaseModelVersion").build();
private static final MarshallingInfo FEATURECONFIG_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("FeatureConfig").build();
private static final ProjectVersionDescriptionMarshaller instance = new ProjectVersionDescriptionMarshaller();
public static ProjectVersionDescriptionMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(ProjectVersionDescription projectVersionDescription, ProtocolMarshaller protocolMarshaller) {
if (projectVersionDescription == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(projectVersionDescription.getProjectVersionArn(), PROJECTVERSIONARN_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getCreationTimestamp(), CREATIONTIMESTAMP_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getMinInferenceUnits(), MININFERENCEUNITS_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getStatus(), STATUS_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getStatusMessage(), STATUSMESSAGE_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getBillableTrainingTimeInSeconds(), BILLABLETRAININGTIMEINSECONDS_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getTrainingEndTimestamp(), TRAININGENDTIMESTAMP_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getOutputConfig(), OUTPUTCONFIG_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getTrainingDataResult(), TRAININGDATARESULT_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getTestingDataResult(), TESTINGDATARESULT_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getEvaluationResult(), EVALUATIONRESULT_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getManifestSummary(), MANIFESTSUMMARY_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getKmsKeyId(), KMSKEYID_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getMaxInferenceUnits(), MAXINFERENCEUNITS_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getSourceProjectVersionArn(), SOURCEPROJECTVERSIONARN_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getVersionDescription(), VERSIONDESCRIPTION_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getFeature(), FEATURE_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getBaseModelVersion(), BASEMODELVERSION_BINDING);
protocolMarshaller.marshall(projectVersionDescription.getFeatureConfig(), FEATURECONFIG_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy