All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.taxsettings.model.transform.AdditionalInfoResponseMarshaller Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Tax Settings module holds the client classes that are used for communicating with Tax Settings 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.taxsettings.model.transform;

import javax.annotation.Generated;

import com.amazonaws.SdkClientException;
import com.amazonaws.services.taxsettings.model.*;

import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;

/**
 * AdditionalInfoResponseMarshaller
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class AdditionalInfoResponseMarshaller {

    private static final MarshallingInfo BRAZILADDITIONALINFO_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("brazilAdditionalInfo").build();
    private static final MarshallingInfo CANADAADDITIONALINFO_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("canadaAdditionalInfo").build();
    private static final MarshallingInfo ESTONIAADDITIONALINFO_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("estoniaAdditionalInfo").build();
    private static final MarshallingInfo GEORGIAADDITIONALINFO_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("georgiaAdditionalInfo").build();
    private static final MarshallingInfo INDIAADDITIONALINFO_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("indiaAdditionalInfo").build();
    private static final MarshallingInfo ISRAELADDITIONALINFO_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("israelAdditionalInfo").build();
    private static final MarshallingInfo ITALYADDITIONALINFO_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("italyAdditionalInfo").build();
    private static final MarshallingInfo KENYAADDITIONALINFO_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("kenyaAdditionalInfo").build();
    private static final MarshallingInfo MALAYSIAADDITIONALINFO_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("malaysiaAdditionalInfo").build();
    private static final MarshallingInfo POLANDADDITIONALINFO_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("polandAdditionalInfo").build();
    private static final MarshallingInfo ROMANIAADDITIONALINFO_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("romaniaAdditionalInfo").build();
    private static final MarshallingInfo SAUDIARABIAADDITIONALINFO_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("saudiArabiaAdditionalInfo").build();
    private static final MarshallingInfo SOUTHKOREAADDITIONALINFO_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("southKoreaAdditionalInfo").build();
    private static final MarshallingInfo SPAINADDITIONALINFO_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("spainAdditionalInfo").build();
    private static final MarshallingInfo TURKEYADDITIONALINFO_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("turkeyAdditionalInfo").build();
    private static final MarshallingInfo UKRAINEADDITIONALINFO_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ukraineAdditionalInfo").build();

    private static final AdditionalInfoResponseMarshaller instance = new AdditionalInfoResponseMarshaller();

    public static AdditionalInfoResponseMarshaller getInstance() {
        return instance;
    }

    /**
     * Marshall the given parameter object.
     */
    public void marshall(AdditionalInfoResponse additionalInfoResponse, ProtocolMarshaller protocolMarshaller) {

        if (additionalInfoResponse == null) {
            throw new SdkClientException("Invalid argument passed to marshall(...)");
        }

        try {
            protocolMarshaller.marshall(additionalInfoResponse.getBrazilAdditionalInfo(), BRAZILADDITIONALINFO_BINDING);
            protocolMarshaller.marshall(additionalInfoResponse.getCanadaAdditionalInfo(), CANADAADDITIONALINFO_BINDING);
            protocolMarshaller.marshall(additionalInfoResponse.getEstoniaAdditionalInfo(), ESTONIAADDITIONALINFO_BINDING);
            protocolMarshaller.marshall(additionalInfoResponse.getGeorgiaAdditionalInfo(), GEORGIAADDITIONALINFO_BINDING);
            protocolMarshaller.marshall(additionalInfoResponse.getIndiaAdditionalInfo(), INDIAADDITIONALINFO_BINDING);
            protocolMarshaller.marshall(additionalInfoResponse.getIsraelAdditionalInfo(), ISRAELADDITIONALINFO_BINDING);
            protocolMarshaller.marshall(additionalInfoResponse.getItalyAdditionalInfo(), ITALYADDITIONALINFO_BINDING);
            protocolMarshaller.marshall(additionalInfoResponse.getKenyaAdditionalInfo(), KENYAADDITIONALINFO_BINDING);
            protocolMarshaller.marshall(additionalInfoResponse.getMalaysiaAdditionalInfo(), MALAYSIAADDITIONALINFO_BINDING);
            protocolMarshaller.marshall(additionalInfoResponse.getPolandAdditionalInfo(), POLANDADDITIONALINFO_BINDING);
            protocolMarshaller.marshall(additionalInfoResponse.getRomaniaAdditionalInfo(), ROMANIAADDITIONALINFO_BINDING);
            protocolMarshaller.marshall(additionalInfoResponse.getSaudiArabiaAdditionalInfo(), SAUDIARABIAADDITIONALINFO_BINDING);
            protocolMarshaller.marshall(additionalInfoResponse.getSouthKoreaAdditionalInfo(), SOUTHKOREAADDITIONALINFO_BINDING);
            protocolMarshaller.marshall(additionalInfoResponse.getSpainAdditionalInfo(), SPAINADDITIONALINFO_BINDING);
            protocolMarshaller.marshall(additionalInfoResponse.getTurkeyAdditionalInfo(), TURKEYADDITIONALINFO_BINDING);
            protocolMarshaller.marshall(additionalInfoResponse.getUkraineAdditionalInfo(), UKRAINEADDITIONALINFO_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy