code: public void marshall(RegisterScalableTargetRequest registerScalableTargetRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (registerScalableTargetRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(registerScalableTargetRequest.getServiceNamespace(), SERVICENAMESPACE_BINDING);
              protocolMarshaller.marshall(registerScalableTargetRequest.getResourceId(), RESOURCEID_BINDING);
              protocolMarshaller.marshall(registerScalableTargetRequest.getScalableDimension(), SCALABLEDIMENSION_BINDING);
              protocolMarshaller.marshall(registerScalableTargetRequest.getMinCapacity(), MINCAPACITY_BINDING);
              protocolMarshaller.marshall(registerScalableTargetRequest.getMaxCapacity(), MAXCAPACITY_BINDING);
              protocolMarshaller.marshall(registerScalableTargetRequest.getRoleARN(), ROLEARN_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.