com.amazonaws.services.bedrock.model.transform.CreateEvaluationJobRequestMarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-bedrock Show documentation
Show all versions of aws-java-sdk-bedrock Show documentation
The AWS Java SDK for Amazon Bedrock module holds the client classes that are used for communicating with Amazon Bedrock 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.bedrock.model.transform;
import java.util.List;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.bedrock.model.*;
import com.amazonaws.util.IdempotentUtils;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* CreateEvaluationJobRequestMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class CreateEvaluationJobRequestMarshaller {
private static final MarshallingInfo JOBNAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("jobName").build();
private static final MarshallingInfo JOBDESCRIPTION_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("jobDescription").build();
private static final MarshallingInfo CLIENTREQUESTTOKEN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("clientRequestToken")
.defaultValueSupplier(com.amazonaws.util.IdempotentUtils.getGenerator()).build();
private static final MarshallingInfo ROLEARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("roleArn").build();
private static final MarshallingInfo CUSTOMERENCRYPTIONKEYID_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("customerEncryptionKeyId").build();
private static final MarshallingInfo JOBTAGS_BINDING = MarshallingInfo.builder(MarshallingType.LIST).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("jobTags").build();
private static final MarshallingInfo EVALUATIONCONFIG_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("evaluationConfig").build();
private static final MarshallingInfo INFERENCECONFIG_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("inferenceConfig").build();
private static final MarshallingInfo OUTPUTDATACONFIG_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("outputDataConfig").build();
private static final CreateEvaluationJobRequestMarshaller instance = new CreateEvaluationJobRequestMarshaller();
public static CreateEvaluationJobRequestMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(CreateEvaluationJobRequest createEvaluationJobRequest, ProtocolMarshaller protocolMarshaller) {
if (createEvaluationJobRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(createEvaluationJobRequest.getJobName(), JOBNAME_BINDING);
protocolMarshaller.marshall(createEvaluationJobRequest.getJobDescription(), JOBDESCRIPTION_BINDING);
protocolMarshaller.marshall(createEvaluationJobRequest.getClientRequestToken(), CLIENTREQUESTTOKEN_BINDING);
protocolMarshaller.marshall(createEvaluationJobRequest.getRoleArn(), ROLEARN_BINDING);
protocolMarshaller.marshall(createEvaluationJobRequest.getCustomerEncryptionKeyId(), CUSTOMERENCRYPTIONKEYID_BINDING);
protocolMarshaller.marshall(createEvaluationJobRequest.getJobTags(), JOBTAGS_BINDING);
protocolMarshaller.marshall(createEvaluationJobRequest.getEvaluationConfig(), EVALUATIONCONFIG_BINDING);
protocolMarshaller.marshall(createEvaluationJobRequest.getInferenceConfig(), INFERENCECONFIG_BINDING);
protocolMarshaller.marshall(createEvaluationJobRequest.getOutputDataConfig(), OUTPUTDATACONFIG_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy