com.amazonaws.services.simpleemailv2.model.transform.DeliverabilityTestReportMarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-sesv2 Show documentation
Show all versions of aws-java-sdk-sesv2 Show documentation
The AWS Java SDK for Amazon Simple Email module holds the client classes that are used for communicating with Amazon Simple Email 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.simpleemailv2.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.simpleemailv2.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* DeliverabilityTestReportMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class DeliverabilityTestReportMarshaller {
private static final MarshallingInfo REPORTID_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("ReportId").build();
private static final MarshallingInfo REPORTNAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ReportName").build();
private static final MarshallingInfo SUBJECT_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("Subject").build();
private static final MarshallingInfo FROMEMAILADDRESS_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("FromEmailAddress").build();
private static final MarshallingInfo CREATEDATE_BINDING = MarshallingInfo.builder(MarshallingType.DATE)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("CreateDate").timestampFormat("unixTimestamp").build();
private static final MarshallingInfo DELIVERABILITYTESTSTATUS_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("DeliverabilityTestStatus").build();
private static final DeliverabilityTestReportMarshaller instance = new DeliverabilityTestReportMarshaller();
public static DeliverabilityTestReportMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(DeliverabilityTestReport deliverabilityTestReport, ProtocolMarshaller protocolMarshaller) {
if (deliverabilityTestReport == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(deliverabilityTestReport.getReportId(), REPORTID_BINDING);
protocolMarshaller.marshall(deliverabilityTestReport.getReportName(), REPORTNAME_BINDING);
protocolMarshaller.marshall(deliverabilityTestReport.getSubject(), SUBJECT_BINDING);
protocolMarshaller.marshall(deliverabilityTestReport.getFromEmailAddress(), FROMEMAILADDRESS_BINDING);
protocolMarshaller.marshall(deliverabilityTestReport.getCreateDate(), CREATEDATE_BINDING);
protocolMarshaller.marshall(deliverabilityTestReport.getDeliverabilityTestStatus(), DELIVERABILITYTESTSTATUS_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy