code: public void marshall(PresetWatermark presetWatermark, ProtocolMarshaller protocolMarshaller) {
  
          if (presetWatermark == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(presetWatermark.getId(), ID_BINDING);
              protocolMarshaller.marshall(presetWatermark.getMaxWidth(), MAXWIDTH_BINDING);
              protocolMarshaller.marshall(presetWatermark.getMaxHeight(), MAXHEIGHT_BINDING);
              protocolMarshaller.marshall(presetWatermark.getSizingPolicy(), SIZINGPOLICY_BINDING);
              protocolMarshaller.marshall(presetWatermark.getHorizontalAlign(), HORIZONTALALIGN_BINDING);
              protocolMarshaller.marshall(presetWatermark.getHorizontalOffset(), HORIZONTALOFFSET_BINDING);
              protocolMarshaller.marshall(presetWatermark.getVerticalAlign(), VERTICALALIGN_BINDING);
              protocolMarshaller.marshall(presetWatermark.getVerticalOffset(), VERTICALOFFSET_BINDING);
              protocolMarshaller.marshall(presetWatermark.getOpacity(), OPACITY_BINDING);
              protocolMarshaller.marshall(presetWatermark.getTarget(), TARGET_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.