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