code: public void marshall(ScalingInstruction scalingInstruction, ProtocolMarshaller protocolMarshaller) {
  
          if (scalingInstruction == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(scalingInstruction.getServiceNamespace(), SERVICENAMESPACE_BINDING);
              protocolMarshaller.marshall(scalingInstruction.getResourceId(), RESOURCEID_BINDING);
              protocolMarshaller.marshall(scalingInstruction.getScalableDimension(), SCALABLEDIMENSION_BINDING);
              protocolMarshaller.marshall(scalingInstruction.getMinCapacity(), MINCAPACITY_BINDING);
              protocolMarshaller.marshall(scalingInstruction.getMaxCapacity(), MAXCAPACITY_BINDING);
              protocolMarshaller.marshall(scalingInstruction.getTargetTrackingConfigurations(), TARGETTRACKINGCONFIGURATIONS_BINDING);
              protocolMarshaller.marshall(scalingInstruction.getPredefinedLoadMetricSpecification(), PREDEFINEDLOADMETRICSPECIFICATION_BINDING);
              protocolMarshaller.marshall(scalingInstruction.getCustomizedLoadMetricSpecification(), CUSTOMIZEDLOADMETRICSPECIFICATION_BINDING);
              protocolMarshaller.marshall(scalingInstruction.getScheduledActionBufferTime(), SCHEDULEDACTIONBUFFERTIME_BINDING);
              protocolMarshaller.marshall(scalingInstruction.getPredictiveScalingMaxCapacityBehavior(), PREDICTIVESCALINGMAXCAPACITYBEHAVIOR_BINDING);
              protocolMarshaller.marshall(scalingInstruction.getPredictiveScalingMaxCapacityBuffer(), PREDICTIVESCALINGMAXCAPACITYBUFFER_BINDING);
              protocolMarshaller.marshall(scalingInstruction.getPredictiveScalingMode(), PREDICTIVESCALINGMODE_BINDING);
              protocolMarshaller.marshall(scalingInstruction.getScalingPolicyUpdateBehavior(), SCALINGPOLICYUPDATEBEHAVIOR_BINDING);
              protocolMarshaller.marshall(scalingInstruction.getDisableDynamicScaling(), DISABLEDYNAMICSCALING_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.