code: public void marshall(ScalingPolicy scalingPolicy, ProtocolMarshaller protocolMarshaller) {
  
          if (scalingPolicy == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(scalingPolicy.getPolicyARN(), POLICYARN_BINDING);
              protocolMarshaller.marshall(scalingPolicy.getPolicyName(), POLICYNAME_BINDING);
              protocolMarshaller.marshall(scalingPolicy.getServiceNamespace(), SERVICENAMESPACE_BINDING);
              protocolMarshaller.marshall(scalingPolicy.getResourceId(), RESOURCEID_BINDING);
              protocolMarshaller.marshall(scalingPolicy.getScalableDimension(), SCALABLEDIMENSION_BINDING);
              protocolMarshaller.marshall(scalingPolicy.getPolicyType(), POLICYTYPE_BINDING);
              protocolMarshaller.marshall(scalingPolicy.getStepScalingPolicyConfiguration(), STEPSCALINGPOLICYCONFIGURATION_BINDING);
              protocolMarshaller.marshall(scalingPolicy.getTargetTrackingScalingPolicyConfiguration(), TARGETTRACKINGSCALINGPOLICYCONFIGURATION_BINDING);
              protocolMarshaller.marshall(scalingPolicy.getAlarms(), ALARMS_BINDING);
              protocolMarshaller.marshall(scalingPolicy.getCreationTime(), CREATIONTIME_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.