com.amazonaws.services.taxsettings.model.transform.TaxRegistrationWithJurisdictionMarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-taxsettings Show documentation
Show all versions of aws-java-sdk-taxsettings Show documentation
The AWS Java SDK for Tax Settings module holds the client classes that are used for communicating with Tax Settings Service
/*
* 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 java.util.List;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.taxsettings.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* TaxRegistrationWithJurisdictionMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class TaxRegistrationWithJurisdictionMarshaller {
private static final MarshallingInfo ADDITIONALTAXINFORMATION_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("additionalTaxInformation").build();
private static final MarshallingInfo CERTIFIEDEMAILID_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("certifiedEmailId").build();
private static final MarshallingInfo JURISDICTION_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("jurisdiction").build();
private static final MarshallingInfo LEGALNAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("legalName").build();
private static final MarshallingInfo REGISTRATIONID_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("registrationId").build();
private static final MarshallingInfo REGISTRATIONTYPE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("registrationType").build();
private static final MarshallingInfo SECTOR_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("sector").build();
private static final MarshallingInfo STATUS_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("status").build();
private static final MarshallingInfo TAXDOCUMENTMETADATAS_BINDING = MarshallingInfo.builder(MarshallingType.LIST)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("taxDocumentMetadatas").build();
private static final TaxRegistrationWithJurisdictionMarshaller instance = new TaxRegistrationWithJurisdictionMarshaller();
public static TaxRegistrationWithJurisdictionMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(TaxRegistrationWithJurisdiction taxRegistrationWithJurisdiction, ProtocolMarshaller protocolMarshaller) {
if (taxRegistrationWithJurisdiction == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(taxRegistrationWithJurisdiction.getAdditionalTaxInformation(), ADDITIONALTAXINFORMATION_BINDING);
protocolMarshaller.marshall(taxRegistrationWithJurisdiction.getCertifiedEmailId(), CERTIFIEDEMAILID_BINDING);
protocolMarshaller.marshall(taxRegistrationWithJurisdiction.getJurisdiction(), JURISDICTION_BINDING);
protocolMarshaller.marshall(taxRegistrationWithJurisdiction.getLegalName(), LEGALNAME_BINDING);
protocolMarshaller.marshall(taxRegistrationWithJurisdiction.getRegistrationId(), REGISTRATIONID_BINDING);
protocolMarshaller.marshall(taxRegistrationWithJurisdiction.getRegistrationType(), REGISTRATIONTYPE_BINDING);
protocolMarshaller.marshall(taxRegistrationWithJurisdiction.getSector(), SECTOR_BINDING);
protocolMarshaller.marshall(taxRegistrationWithJurisdiction.getStatus(), STATUS_BINDING);
protocolMarshaller.marshall(taxRegistrationWithJurisdiction.getTaxDocumentMetadatas(), TAXDOCUMENTMETADATAS_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy