APISonar


com.amazonaws.protocol.MarshallingType.DATE

> com > amazonaws > protocol > MarshallingType > DATE
com APIs amazonaws APIs protocol APIs MarshallingType APIs DATE APIs

Example 1
public <T> ProtocolRequestMarshaller<T> createProtocolMarshaller(OperationInfo operationInfo, T origRequest) {
        return JsonProtocolMarshallerBuilder.<T>standard()
                .jsonGenerator(operationInfo.hasPayloadMembers() ? createGenerator() : StructuredJsonGenerator.NO_OP)
                .contentType(getContentType())
                .operationInfo(operationInfo)
                .originalRequest(origRequest)
                .sendExplicitNullForPayload(true)
                .marshallerOverride(MarshallLocation.PAYLOAD, MarshallingType.DATE,
                                    (val, generator) -> generator.writeValue(DateUtils.formatISO8601Date(val)))
                .build();
    }