com.amazonaws.services.quicksight.model.transform.DisplayFormatOptionsMarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-quicksight Show documentation
Show all versions of aws-java-sdk-quicksight Show documentation
The AWS Java SDK for Amazon QuickSight module holds the client classes that are used for communicating with Amazon QuickSight 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.quicksight.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.quicksight.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* DisplayFormatOptionsMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class DisplayFormatOptionsMarshaller {
private static final MarshallingInfo USEBLANKCELLFORMAT_BINDING = MarshallingInfo.builder(MarshallingType.BOOLEAN)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("UseBlankCellFormat").build();
private static final MarshallingInfo BLANKCELLFORMAT_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("BlankCellFormat").build();
private static final MarshallingInfo DATEFORMAT_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("DateFormat").build();
private static final MarshallingInfo DECIMALSEPARATOR_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("DecimalSeparator").build();
private static final MarshallingInfo GROUPINGSEPARATOR_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("GroupingSeparator").build();
private static final MarshallingInfo USEGROUPING_BINDING = MarshallingInfo.builder(MarshallingType.BOOLEAN)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("UseGrouping").build();
private static final MarshallingInfo FRACTIONDIGITS_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("FractionDigits").build();
private static final MarshallingInfo PREFIX_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("Prefix").build();
private static final MarshallingInfo SUFFIX_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("Suffix").build();
private static final MarshallingInfo UNITSCALER_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("UnitScaler").build();
private static final MarshallingInfo NEGATIVEFORMAT_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("NegativeFormat").build();
private static final MarshallingInfo CURRENCYSYMBOL_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("CurrencySymbol").build();
private static final DisplayFormatOptionsMarshaller instance = new DisplayFormatOptionsMarshaller();
public static DisplayFormatOptionsMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(DisplayFormatOptions displayFormatOptions, ProtocolMarshaller protocolMarshaller) {
if (displayFormatOptions == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(displayFormatOptions.getUseBlankCellFormat(), USEBLANKCELLFORMAT_BINDING);
protocolMarshaller.marshall(displayFormatOptions.getBlankCellFormat(), BLANKCELLFORMAT_BINDING);
protocolMarshaller.marshall(displayFormatOptions.getDateFormat(), DATEFORMAT_BINDING);
protocolMarshaller.marshall(displayFormatOptions.getDecimalSeparator(), DECIMALSEPARATOR_BINDING);
protocolMarshaller.marshall(displayFormatOptions.getGroupingSeparator(), GROUPINGSEPARATOR_BINDING);
protocolMarshaller.marshall(displayFormatOptions.getUseGrouping(), USEGROUPING_BINDING);
protocolMarshaller.marshall(displayFormatOptions.getFractionDigits(), FRACTIONDIGITS_BINDING);
protocolMarshaller.marshall(displayFormatOptions.getPrefix(), PREFIX_BINDING);
protocolMarshaller.marshall(displayFormatOptions.getSuffix(), SUFFIX_BINDING);
protocolMarshaller.marshall(displayFormatOptions.getUnitScaler(), UNITSCALER_BINDING);
protocolMarshaller.marshall(displayFormatOptions.getNegativeFormat(), NEGATIVEFORMAT_BINDING);
protocolMarshaller.marshall(displayFormatOptions.getCurrencySymbol(), CURRENCYSYMBOL_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy