public void marshall(PutScalingPolicyRequest putScalingPolicyRequest, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(putScalingPolicyRequest.getName(), NAME_BINDING);
            protocolMarshaller.marshall(putScalingPolicyRequest.getFleetId(), FLEETID_BINDING);
            protocolMarshaller.marshall(putScalingPolicyRequest.getScalingAdjustment(), SCALINGADJUSTMENT_BINDING);
            protocolMarshaller.marshall(putScalingPolicyRequest.getScalingAdjustmentType(), SCALINGADJUSTMENTTYPE_BINDING);
            protocolMarshaller.marshall(putScalingPolicyRequest.getThreshold(), THRESHOLD_BINDING);
            protocolMarshaller.marshall(putScalingPolicyRequest.getComparisonOperator(), COMPARISONOPERATOR_BINDING);
            protocolMarshaller.marshall(putScalingPolicyRequest.getEvaluationPeriods(), EVALUATIONPERIODS_BINDING);
            protocolMarshaller.marshall(putScalingPolicyRequest.getMetricName(), METRICNAME_BINDING);
            protocolMarshaller.marshall(putScalingPolicyRequest.getPolicyType(), POLICYTYPE_BINDING);
            protocolMarshaller.marshall(putScalingPolicyRequest.getTargetConfiguration(), TARGETCONFIGURATION_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( PutScalingPolicyRequest putScalingPolicyRequest , ProtocolMarshaller protocolMarshaller ) { if ( putScalingPolicyRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( putScalingPolicyRequest . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( putScalingPolicyRequest . getFleetId ( ) , FLEETID_BINDING ) ; protocolMarshaller . marshall ( putScalingPolicyRequest . getScalingAdjustment ( ) , SCALINGADJUSTMENT_BINDING ) ; protocolMarshaller . marshall ( putScalingPolicyRequest . getScalingAdjustmentType ( ) , SCALINGADJUSTMENTTYPE_BINDING ) ; protocolMarshaller . marshall ( putScalingPolicyRequest . getThreshold ( ) , THRESHOLD_BINDING ) ; protocolMarshaller . marshall ( putScalingPolicyRequest . getComparisonOperator ( ) , COMPARISONOPERATOR_BINDING ) ; protocolMarshaller . marshall ( putScalingPolicyRequest . getEvaluationPeriods ( ) , EVALUATIONPERIODS_BINDING ) ; protocolMarshaller . marshall ( putScalingPolicyRequest . getMetricName ( ) , METRICNAME_BINDING ) ; protocolMarshaller . marshall ( putScalingPolicyRequest . getPolicyType ( ) , POLICYTYPE_BINDING ) ; protocolMarshaller . marshall ( putScalingPolicyRequest . getTargetConfiguration ( ) , TARGETCONFIGURATION_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.