Caplin FXIntegrationAPI Documentation - Version 8.3.0

Message Builder Example - AllocationNettedLegTradeConfirmationFields

package com.caplin.examples.fxapi.generated.motif.fx.tradeconfirmation.TradeConfTypesDef; 

import java.math.BigInteger;
import static com.caplin.motif.fx.config.DefaultDisplayFields.addDefaultSalesAllocationDetailsUpdateFields;

import com.caplin.generated.motif.fx.tradeconfirmation.TradeConfPartsDef;
import com.caplin.generated.motif.fx.tradeconfirmation.TradeConfTypesDef;

public class AllocationNettedLegTradeConfirmationFieldsExample {
    public static void main(String[] args) {
                    		
		TradeConfTypesDef.AllocationNettedLegTradeConfirmationFields allocationNettedLegTradeConfirmationFields =
		TradeConfTypesDef.AllocationNettedLegTradeConfirmationFields
			.newBuilder()
			.addAllocationInputLegTradeConfirmationFields(
			TradeConfPartsDef.AllocationLegTradeConfirmationFields
				.newBuilder()
				.setDisplayFields(addDefaultSalesAllocationDetailsUpdateFields(/* See DefaultDisplayFields javadoc for parameters and available builder methods. */))
				.setMarkToMarket(BigDecimal.valueOf(12.45))
				.build())
			.setAllocationNettedLegTradeConfirmation(
			TradeConfPartsDef.AllocationLegTradeConfirmationFields
				.newBuilder()
				.build())
			.build();
            
    }
}