code: public void marshall(ModifyHsmRequest modifyHsmRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (modifyHsmRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(modifyHsmRequest.getHsmArn(), HSMARN_BINDING);
              protocolMarshaller.marshall(modifyHsmRequest.getSubnetId(), SUBNETID_BINDING);
              protocolMarshaller.marshall(modifyHsmRequest.getEniIp(), ENIIP_BINDING);
              protocolMarshaller.marshall(modifyHsmRequest.getIamRoleArn(), IAMROLEARN_BINDING);
              protocolMarshaller.marshall(modifyHsmRequest.getExternalId(), EXTERNALID_BINDING);
              protocolMarshaller.marshall(modifyHsmRequest.getSyslogIp(), SYSLOGIP_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.