docs: public void marshall(AttachObjectRequest attachObjectRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (attachObjectRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(attachObjectRequest.getDirectoryArn(), DIRECTORYARN_BINDING);
              protocolMarshaller.marshall(attachObjectRequest.getParentReference(), PARENTREFERENCE_BINDING);
              protocolMarshaller.marshall(attachObjectRequest.getChildReference(), CHILDREFERENCE_BINDING);
              protocolMarshaller.marshall(attachObjectRequest.getLinkName(), LINKNAME_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }