code: public void marshall(CreateIndexRequest createIndexRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (createIndexRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(createIndexRequest.getDirectoryArn(), DIRECTORYARN_BINDING);
              protocolMarshaller.marshall(createIndexRequest.getOrderedIndexedAttributeList(), ORDEREDINDEXEDATTRIBUTELIST_BINDING);
              protocolMarshaller.marshall(createIndexRequest.getIsUnique(), ISUNIQUE_BINDING);
              protocolMarshaller.marshall(createIndexRequest.getParentReference(), PARENTREFERENCE_BINDING);
              protocolMarshaller.marshall(createIndexRequest.getLinkName(), LINKNAME_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.